Reputation: 475
I'm referring to https://www.igniterealtime.org/builds/smack/docs/4.1.0/documentation/debugging.html for integrating debugger console in my android studio and added SmackConfiguration.DEBUG = true; but still can't see any debugging window. Please help me in this.
Edited [08-Feb-2018]:
On the basis of smack debugging document (https://github.com/igniterealtime/Smack/blob/master/documentation/debugging.md)
we can show all the packet level information in logcat or in system console.
For console logs:
System.setProperty("smack.debuggerClass", "org.jivesoftware.smack.debugger.ConsoleDebugger")
System.setProperty("smack.debugEnabled", "true")
For Android Logcat:
SmackConfiguration.DEBUG = true
However, as per the doc, it provides GUI debugger viz Lite Debugger and Enhanced Debugger
Viewing multiple unorganized XMPP logs aren't readable at all. It will be however convenient to read via a GUI Debugger like the enhanced debugger.
I am using Ubuntu (Linux OS) and Android Studio for the development.
How can we add GUI debugger for debugging for building an android client?
Upvotes: 4
Views: 1188
Reputation: 21
Set system property like this:
System.setProperty("smack.debuggerClass","org.jivesoftware.smack.debugger.ConsoleDebugger");
System.setProperty("smack.debugEnabled", "true");
SmackConfiguration.DEBUG = true;
Upvotes: 1