Restriction:
Attaching to a running process is only supported on AIX and Windows.
Important:
You can only attach to a running process when debugging a High Performance Compiled (HPC)
Java program. 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 Process List 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 on a remote system with the Process List dialog:
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, <full_path_to_executable> is the full path name to the executable associated with process id you want to attach, 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 process. Attaching to such processes can cause unpredictable results.
If you are currently debugging a process, that process is terminated when the new process is attached. 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