Package org.jivesoftware.smack.debugger

Smack includes built-in debugging consoles that will let you track all XML traffic between the client and server. Further debuggers, besides those provide by smack-core, can be found in org.jivesoftware.smackx.debugger (note, that this uses the smackx namespace, and not smack) provided by smack-debug. Debugging mode can be enabled in two different ways. Add the following line of code before creating new connections SmackConfiguration.DEBUG = true; Set the Java system property smack.debugEnabled to true. The system property can be set on the command line such as
java -Dsmack.debugEnabled=true SomeApp