How to start the tomcat in debug mode for debugging in eclipse

Author posted by Jitendra on Posted on under category Categories JAVA and tagged as Tags , with 2 Comments on How to start the tomcat in debug mode for debugging in eclipse

This is the tutorial on How to start the tomcat in debug mode for debugging in eclipse

1. Open the startup script in (your_tomcat_home) {Location is : %CATALINA_HOME%binstartup.bat }
2. Add the following lines at the first blank line in the file ( around line 8 )
Windows :

set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket

Linux:

export JPDA_ADDRESS=8000
export JPDA_TRANSPORT=dt_socket

3. Change the execute line at the end to include “jpda”
Window:

call “%EXECUTABLE%” jpda start %CMD_LINE_ARGS%

Linux:

exec “$PRGDIR”/”$EXECUTABLE” jpda start “$@”

Related posts

2 thoughts on “How to start the tomcat in debug mode for debugging in eclipse”

    1. Hi,
      There is no destructor in JAVA.
      Refer this article - https://jitendrazaa.com/blog/java/java-destructor-finalize/

Leave a Reply to JitendraZaa Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.