How do I debug J2EE application using Glassfish Java EE 5 server in
Any feedback is appreciated.
login to the admin console (localhost:4848), click on "Application Server" in the left menue, click on "JVM Settings", check "Debug", change port if you like ("Debug options", assign other port to param "address").
Create new Remote Debug Config in eclipse ("Debug...", "Remote Java Application"). Name it as you wish and tell it to connect to localhost with port 9009 (or your port specified).
Start debug-configuration, eclipse should now connect.
Happy debugging!! ;)
Thank you so much. Had several configuration problems and you post helped me a lot to sort this out.
The paths to those options were slightly different for me :
- Configuration -> something-config -> JVM settings
- Run -> Debug Configurations ti find "Remote Java Application"
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.