Debug openfire4.4.3

Hello everyone, how do I use eclipse to run openfire4.4.3 source code? Although it can run on ubuntu, I now want to debug it using eclipse. The instructions I found on the Internet are for the previous project structure of openfire. I don’t know if it is still applicable. Hope you guys give me some help, thank you very much.

I stopped using Eclipse many, many moons ago, so I have no direct experience. I do however debug Openfire all the time, using Intellij. What I do is:

  1. Start Openfire with debugging options (if you use the openfire.sh script, you can just add the -debug argument. If not, you’ll have to launch the java process with something like -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 (for JDK 5 - 8)
  2. Attach the debugger to a ‘remote’ process (but that process is running on localhost, port 5005)

Thank you very much, I also use Intellij now and it runs successfully.

1 Like