The web app I'm trying to debug only exhibits a bug on a particular Glassfish server, so I want to debug the web app remotely. But the web app was developed in Eclipse for Java SE and I can't see how to do that.
I have:
However, I do not see "Run on server" or "Debug on server" in the Run menu of Eclipse. If do Debug as, I can create a new Glassfish configuration but I can't select a server, so I can't configure the configuration.
For Glassfish 3:
First enable debugging in the Glassfish administration console (Application Server -> JVM Settings -> General -> Debug Options) which require restarting the domain. Make a note of the port number.
Then you can attach to the Glassfish debug port like any other debug session, with a "Remote Java Application" in the debug configurations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With