Starting the debugger for debugging compiled languages remotely

ngaix.gif (1051 bytes)ngwin.gif (1069 bytes) Restriction: Remote debugging is only supported on AIX, Solaris, HP-UX, and Windows.

Note: This section describes how to debug a program running on one machine from a debugger user interface on another machine. It does not describe how to debug the server code for WebSphere Application Server Enterprise Edition objects.

The debugger allows you to run the debugger user interface and the debug engine on separate machines. These separate machines can be running different operating systems. When you start the debugger for remote debugging, you first start a debug engine daemon. This daemon waits for a connection from the debugger user interface. Once a connection is established, you can begin to debug your program.

To start debugging a remote program from the command line:

  1. On the remote system, start the debug engine with the irmtdbgc command at a command line prompt. For information on irmtdbgc command parameters, see the related topic below.
  2. On the local system, use the idebug command to start the Debugger user interface and then select TCP/IP connection in the Load Program dialog and enter the name of the host where you started the debug engine to make the connection.

Alternatively, you can use a command line after starting the debug engine to issue the idebug command, using the remote debug parameters. If you use this method to make the connection, you must specify the -qhost parameter and the -qlang parameter for the language you are debugging. For information on the idebug command parameters, see the related topic below.

Tip: The debug engine is terminated if the debugger cannot load the program you want to debug. Also, the debug engine is terminated when the program you are debugging runs to completion or is terminated manually. To prevent the debug engine from being terminated in these situations, use the -qdaemon option of the irmtdbgc command.


Remote debugging

ngrelt.gif (466 bytes)
ngaix.gif (1051 bytes)ngwin.gif (1069 bytes)Starting the debugger for debugging interpreted Java remotely

ngrelr.gif (548 bytes)
ngjava.gif (225 bytes)irmtdbgj command
ngaix.gif (1051 bytes)ngwin.gif (1069 bytes)ngsol.gif (418 bytes)irmtdbgc command
idebug command