Thursday, March 6, 2014

Remote Debugging the TC Server

Enabling Remote Debugging on TC server is Quite simple.

Step 1: Enable remote debugging on the server and restart the server.

Open setenv.bat (or .sh) in any text editor.File can be found at path-vmware-tc-sever\bin\setenv.bat.

add these arguments to JVM_DEBUG_OPTS

set JVM_DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8003,server=y,suspend=n



After making the above changes

Step 2: Run this command and make sure the server is listening

  • # fuser 8003/tcp        O/p   -- 8003/tcp:            21057

  •  ls -l /proc/21057/exe  --  O/P -lrwxrwxrwx 1 root root 0 Mar  6 11:08 /proc/21057/exe -> /usr/java/jdk1.7.0_40/bin/java.

Step 3: Enable the remote Debugging in Eclipse

  1. go to your eclipse Menu --> Run --> Debug Configuration
  2. Left Panel, double click on "Remote Java Application"
  3. Enter Conf Name
  4. Host: Give Remote Server name/ip
  5. change port: 8003 (defined in step one)
  6. click on "Apply"
  7. Click on "Debug"
  8. Add a debug point and run a transaction.. 
Happy Debugging :).

No comments:

Post a Comment