I have deployed my WAR on a remote Glassfish server(not the same machine Eclipse runs) and wanted to do remote debugging using Eclipse.
Here are the steps I followed :
1) Enabled debugging in Glassfish ( start-domain --user admin --debug shopserver-grp01 ) Enabled Debug in JVM settings in the server instance.
2) In Eclipse started Debug "Remote Java Application" and successfully connected to the jdb port of the Glassfish server.
3) Changed the perspective to "Debug" and I could see the connection is successful and running server threads.
4) Toggled some breakpoints in my Service classes.
5) Open the browser and accessed my REST service with some parameters.
But the Eclipse wont pause at the marked Break points?
Any tips ? Any special compiler parameters when building ? I use Maven.