Ensure Tomcat is not running before making any changes.
Add the following in the first free line that’s not commented out to the file tomcat\bin\startup.bat:
set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket
For example from:
rem $Id: startup.bat 895392 2010-01-03 14:02:31Z kkolinko $
rem ---------------------------------------------------------------------------
rem Guess CATALINA_HOME if not defined
set "CURRENT_DIR=%cd%"
to:
rem $Id: startup.bat 895392 2010-01-03 14:02:31Z kkolinko $
rem ---------------------------------------------------------------------------
rem Enable remote debugging
set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket
rem Guess CATALINA_HOME if not defined
set "CURRENT_DIR=%cd%"
Modify the last line from
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
to
call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%
Start Eclipse IDE.
Go to Run > Debug Configurations…
Right click on Remote Java Application from the menu on the left and select New.
Enter the following:
Click the Apply button to save it. Press the Close button to make the dialogue disappear.
Go to the Debug perspective from Window > Open Perspective > Debug. If Debug is not listed, go to Other… and find it from the list.
It’s fairly simple to enable but it’s odd that the changes have to be made in the startup script rather than a configuration item.
i’m this issue. I tried what you mentioned above and I’m still having the issue. Could you please help me with this.