Instead of start.sh start tomcat as follows after the project is deployed
./catalina.sh jpda run
In Eclipse Set the project on build path
Debug Configuration
Remote Java Application Right Click New and start debugging it already set to monitor port 8000
./catalina.sh jpda run
In Eclipse Set the project on build path
Debug Configuration
Remote Java Application Right Click New and start debugging it already set to monitor port 8000
Nice article , just to add I would suggest start up script to put JVM debug parameter and use a variable e.g. isDebugEnabled and also REMOTE_DEBUG_PORT in the script and export this variable when you want to remote debug your Java application. This will be very handy and will require just one time setup work.
ReplyDeleteThanks
Javin
How to setup remote debugging in Eclipse