Package org.jivesoftware.smack.debugger
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
-
ClassDescriptionVery simple debugger that prints to the console (stdout) the sent and received stanzas.Very simple debugger that prints to the console (stdout) the sent and received stanzas.Interface that allows for implementing classes to debug XML traffic.