Monday, May 5, 2014

debugging eclipse app from command line

go to the path of the class file, let's A.class
and run

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044 A

And in eclipse launch a Remote Java Application Debug configuration
with port 1044

No comments:

Blog Archive