java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n MyClass
-Xdebug
enables debugging mode;-Xrunjdwp
configures Java Debug Wire Protocol with sub-options; like the communication mode between jvm and debugger, the listening port, whether wait until the debugger connection or not, etc. See links for further detailsSee also:
-Xrunjdwp sub-options
Remote Debugging with Eclipse
Nessun commento:
Posta un commento