4
votes

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?

1
I am trying to do the same. Where you ever able to figure it out? @user2660386i_o
There was no individual window for it,but i could see logs in verbose.Dharmita bhatt
how did you access the logs? what did you type to search thru the logs for smack debugging? @user2660386i_o
if you have SmackConfiguration.DEBUG = true in your code , then you can see smack related logs in logcatDharmita bhatt
Checkout this answer This solved my issues with debuggingmut tony

1 Answers

1
votes

Set system property like this:

System.setProperty("smack.debuggerClass","org.jivesoftware.smack.debugger.ConsoleDebugger");
System.setProperty("smack.debugEnabled", "true");
SmackConfiguration.DEBUG = true;