There's a built-in default debugger, which prints XMPP communication to the console. You can enable it by configuring the session accordingly:
XmppSessionConfiguration configuration = XmppSessionConfiguration.builder()
.debugger(ConsoleDebugger.class)
.build();
XmppClient xmppClient = XmppClient.create("domain", configuration);
There's also an advanced visual debugger implementation in the xmpp-debug
project:
If you have the corresponding jar file on your classpath, you can use it like that:
XmppSessionConfiguration configuration = XmppSessionConfiguration.builder()
.debugger(VisualDebugger.class)
.build();
XmppClient xmppClient = XmppClient.create("domain", configuration);