powered by Jive Software

Adding Enhanced Debugger to view packet level information for Smack android based XMPP client

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?

PROBLEM STATEMENT : https://stackoverflow.com/questions/34719166/include-debugging-with-smack-in-android-studio

1 Like