Find the steps below to start tomcat in debug mode from command line.
set two environment variables as...
set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=7777
After setting the environment, start the tomcat server using following command
catalina.bat jpda start
To debug application using IDE Eclipse you need to connect your IDE to tomcat listening port.
Goto debug Configuration,
Select Remote Java Application, Click New Launch Configuration icon to create new configuration.
Enter Project Name, Host(Remote Tomcat Server running in debug mode IP Address) and Port(JPDA_ADDRESS before starting tomcat in debug mode)
Click Debug and start debugging your application.
set two environment variables as...
set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=7777
After setting the environment, start the tomcat server using following command
catalina.bat jpda start
To debug application using IDE Eclipse you need to connect your IDE to tomcat listening port.
Goto debug Configuration,
Select Remote Java Application, Click New Launch Configuration icon to create new configuration.
Enter Project Name, Host(Remote Tomcat Server running in debug mode IP Address) and Port(JPDA_ADDRESS before starting tomcat in debug mode)
Click Debug and start debugging your application.
No comments:
Post a Comment