Restriction:
Attaching to a local running process is only supported on AIX and Windows.
Note: When you are debugging a WebSphere Application Server Enterprise Edition Series 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 running process 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 with the Attach dialog:
or
If you know the Process ID, click the Enter Process ID radio button and enter the Process ID in the Process ID field.
To attach the debugger to a running process from a command line, enter the following command:
idebug
-a<process_id>
where <process_id> is a valid process id on your system.
Important: Do not attach to operating system processes or to the debugger's own processes. Attaching to such processes can cause unpredictable results.
When you exit the debugger, any attached process is also terminated.
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.
You cannot restart a program that you have attached to.
Attaching to a remote running process
Attaching
to a running Java Virtual Machine