Smack includes a built-in debugging console that will let you track all XML traffic between the client and server.
When debugging mode is enabled, a debug window will appear when each new connection is created. The window will contain the following information:
Debugging mode can be enabled in two different ways:
XMPPConnection.DEBUG_ENABLED = true;
java -Dsmack.debugEnabled=true SomeApp
If you wish to explicitly disable debug mode in your application, including using the command-line parameter, add the following line to your application before opening new connections:
XMPPConnection.DEBUG_ENABLED = false;