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

Add %JVM_DEBUG_OPTS%  to JAVA_OPTS

Eg: JVM_OPTS=%GENERAL_JVM_OPTS% %SUN_JVM_OPTS% %JVM_DEBUG_OPTS%

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 :).

Comments

Popular posts from this blog

'jasypt.encryptor.password' or one of ['jasypt.encryptor.privateKeyString', 'jasypt.encryptor.privateKeyLocation'] must be provided for Password-based or Asymmetric encryption

Field or property 'jobParameters' cannot be found on object of type 'org.springframework.beans.factory.config.BeanExpressionContext' - Spring Batch

Couldn't store job: Unable to serialize JobDataMap for insertion into database because the value of property 'jobLauncher' is not serializable