Source Level Debugging

You can debug applications running on NetWare using any JDPA compliant debugger or debugging IDE. The following are available debuggers:

Remote and local debugging of Java Applications are available through the socket transport.

IMPORTANT:  The socket transport name of NetWare is dt_skt. On other platforms, it is dt_socket.


Required VM Options

To debug applications, you need the following debug invocation options:


-Xrunjdwp Examples

-Xrunjdwp:transport=dt_skt,server=y,address=8000

Listen for a socket connection on port 8000. Suspend this VM before main class loads (suspend=y by default). After the debugger application connects, it can resume the VM.

-Xrunjd2p:transport=dt_skt,address=8000

Start the application without suspending. Then listen for a socket connection on port 8000. When the debugger application connects, it can suspend the VM.


Complete Examples

java -Xdebug  
-runjdwp:transport=dt_skt,server=y,address=8000
-Xbootclasspath/a:SYS:/myapp/foo.jar HelloWorld

Listen for a socket connection on port 8000. Suspend this VM before the main class loads. After the debugger application connects, it can send a JDWP command to resume the VM of the HelloWorld application.