powered by Jive Software

Debug openfire plugin

Hi everyone, I have a puzzle about debugging the openfire plugin.
I can remotely debug openfire on IntelliJ, because I can add breakpoints in the corresponding java source files, but my plugin is added to openfire by copying the plugin’s jar package, of which only the compiled " .class "file, so java files without plugins let me add breakpoints. I want to debug my plugin when debugging openfire. I don’t know how to do this, I hope you can give me some guidance.

What I do to debug plugins, is create a project of the plugin source code in the IDE (just like you created a project for the Openfire source code).

From your plugin project work space, you can attach a debugger to Openfire (that has the plugin running) just like you would do with Openfire (as we discussed in Debug openfire4.4.3 ).