How to debug a remote Glassfish web application from Eclipse?

The web application that I am trying to debug displays only an error on a specific Glassfish server, so I want to remotely debug the web application. But the web application was developed in Eclipse for Java SE, and I don’t see how to do it.

I have:

  • Installed Eclipse 3.7 for Java EE
  • Glassfish Adapter Installed
  • Configuring the server for secure login and debugging JPDA
  • Added server as server in Eclipse

However, in the Eclipse Start menu, I do not see Start on Server or Debug on Server. If do Debug as, I can create a new Glassfish configuration, but I cannot select a server, so I cannot configure the configuration.

+4
source share
1 answer

For Glassfish 3:

First enable debugging in the Glassfish administration console (Application Server → JVM Settings → General → Debug Settings) which require a domain restart. Record the port number.

You can then connect to the Glassfish debug port, just like any other debug session, with the “Remote Java Application” in the debug configurations.

+4
source

Source: https://habr.com/ru/post/1387542/


All Articles