Starting Smack debug window


I just figured out a there was a small omission in the debug documenttion of smack.

It states you can start the debug window either “lite” or “enhanced” by using the

XMPPConnection.DEBUG_ENABLED = true;


Then when instantiating your XMPPConnection, and connecting, the debug window should be shown.

This was not successful for me and after looking in the XMPPConnection source I noticed that for the

public XMPPConnection(ConnectionConfiguration config)

constructor there was no call to


so the trick I used is to call

Connectionconfiguration xmppConnectionConfig = new ConnectionConfig(etc …);

and then


before calling

xmppConnection = new XMPPConnection(xmppConnectionConfig);

then the debug window will successfully show.



1 Like

Thanks! It was driving me nuts

I find it much more convenient to do it as a VM argument when running my code. That way I don’t need to alter my code for debugging.