Smack Enhanced Debugger

  • Post author:
  • Post category:Java

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>

This Post Has One Comment

  1. Akhil

    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.

Comments are closed.