Note: When you are debugging a WebSphere Application Server Enterprise Edition Series or OS/390 program, the Load Program dialog and the Attach menu item are not applicable.
Important:
For interpreted Java programs, you must attach to a running Java Virtual
Machine (JVM). See the related topic below on how to attach to a running JVM.
You can attach the debugger to a process running on a remote system either by using the Attach dialog or from a command line by using the -a option of the idebug command. See the related topic below on when to attach to a running process.
To attach the debugger to a running process from a command line:
where <remote_host> is the the TCP/IP name or address of the remote system, and <process_id> is a valid process id on the remote system.
Important: Do not attach to operating system processes or to the debugger's own processes. Attaching to such processes can cause unpredictable results.
To attach the debugger to a running process on a remote system with the Attach dialog:
The debugger detaches from the process on debugger exit. The Terminate
button can be used to terminate an attached process. To detach without exiting
the debugger, use the Detach button or select Debug> Detach
from the menu bar.
When you exit the debugger, any attached process is also terminated.
You cannot restart a program that you have attached to.
Attaching to a local running process
Attaching
to a running Java Virtual Machine