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 “$@”

2 comments

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

Leave a comment

Your email address will not be published. Required fields are marked *

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