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

Get articles everyday as a email directly to your inbox:
Click to publicize, if you like this article :

1. Open the startup script in (your_tomcat_home) {Location is : %CATALINA_HOME%\bin\startup.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 “$@”

You can leave a response, or trackback from your own site.
  • Chandra111443

    i wat distructer example(java) pls 

    • JitendraZaa

      Hi,
      There is no destructor in JAVA.
      Refer this article - http://shivasoft.in/blog/java/java-destructor-finalize/