3. Debugee
% java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=6666 -jar _____
% java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=6666 _____
1. server=y
Java application should be a TCP/IP server and wait for connections
2. suspend=y
The Java application (now server) will pause on start up and wait for
debugger to join. If ‘n‘, application will not wait for debugger at start up,
instead it will run as usual and when IDE encounters breakpoint it will
fork the application.
3. address=<debug-port>
A port number on which the debugger will join to debug the application.
Remember, this should be a port that is not already in use.
9. Eclipse - Console Option
1. Add following option before -vmargs in the eclipse.ini.
2. -console [port]
Enable the OSGi console.
-startup
...
-console
-vmargs
...
10. Eclipse - Verbose Option
1. Add following option after -vmargs in the eclipse.ini.
2. -verbose:class
Display information about each class loaded.
-vmargs
...
-verbose:class