Monday Jul 13, 2009

Attaching a debugger to tomcat

If you want to attach a remote debugger to tomcat when running as a windows service.

  1. Right click on the tomcat service icon in the applications panel.

  2. Click on configure.

  3. Go to java tab and add these two java options

-Xdebug

-Xrunjdwp:transport=dt_socket,address=9009,server=y,suspend=n

If tomcat is installed as a separate bundle.

  1. Go to catalina.bat and set JPDA_TRANSPORT=dt_socket and set JPDA_ADDRESS=<required debugger port>

  2. In startup.bat change the executable line as follows

call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%

About

murali529

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today