Friday, January 13, 2012

java remote debugging

run java application in remote machine with following parameters,those are all for JVM

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8004,server=y,suspend=y"


then in local machine like eclipse or netbeans,run a debug or attach debugger,provide the remote machine information(ip),and port,then we will go through the source code within IDE,stop on the breakpoint we set in source code


that's all


No comments:

Post a Comment