Smack Enhanced Debugger

If you wish to use the Smack Enhanced Debugger, make sure you enable the debugger in ConnectionConfiguration, and add smackx-debug-*.jar to your classpath. Here’s the code snippet for ConnectionConfiguration:

ConnectionConfiguration config = new ConnectionConfiguration(host, port);
config.setDebuggerEnabled(true);

And here’s the Maven dependency:

<dependency>
	<groupId>org.igniterealtime.smack</groupId>
	<artifactId>smackx-debug</artifactId>
	<version>3.2.1</version>
</dependency>

1 Comment

  1. Akhil says:

    What if I want to remove the smack debug window.
    If I set config.setDebuggerEnabled(false); then, the whole program exits. I need the program as if it runs with a debug window but without displaying the debug window.


Leave a Reply

Your email address will not be published. Required fields are marked *