Sep 19, 2018

Enable Glassfish Debugging

When you enable debugging, you enable both local and remote debugging. To start the server in debug mode, use the ----debug option as follows:

asadmin start-domain --debug [domain-name]
You can then attach to the server from the Java Debugger (jdb) at its default Java Platform Debugger Architecture (JPDA) port, which is 9009. For example, for UNIX systems:
jdb -attach 9009
For Windows:
jdb -connect com.sun.jdi.SocketAttach:port=9009