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

Posted

in

by

Tags:


Related Posts

Comments

3 responses to “How to start the tomcat in debug mode for debugging in eclipse”

  1. Chandra111443 Avatar
    Chandra111443

    i wat distructer example(java) pls 

    1. JitendraZaa Avatar
      JitendraZaa

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

Leave a Reply

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

Discover more from Jitendra Zaa

Subscribe now to keep reading and get access to the full archive.

Continue Reading