How to do remote Command-line debugger (Sun’s JDB) works?
Step 1>Create A Project give the example SKV.war Step 2>put in some virtual machine like 192.168.57.66 Step 3>Run this program in java application or jboss Step 4>see the jboss configuration like: java -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y Step 5>Now goto that virtual machine using below command Step 6>login ssh username@ip Step 7>see the java version:java -version step 8>see the java path:which java step 9>goto java path and see the jdb version using: jdb -version step 10>jdb attach remote debug port no example:jdb attach 8787 Step 11>Now put the debug point on your class on line number basic Step 12>stop at com.kartik.tutorial.Blogger:25 (command like: stop at packageName.ClassName:line number) Syntax The following command sets up a breakpoint at a particular line number: > stop at <class name>:<Line no> The following command sets up a breakpoint on a particular method or on a particular variable: > stop in <class name>:< Method name | Variable name> step 13>same activity of step 12 to do for other debug point place step 14>now trigger the api and see the debug it working: Step 15>Thanks for your time spent :)For more understanding : click