Restriction:
Attaching to a running process is only supported on AIX and Windows.
You can
attach the debugger to an already running program or a running Java Virtual Machine (JVM)
where an error or failure has occurred.
There are two main reasons for attaching the debugger to a process:
You can
also use the debug on demand feature to invoke the debugger when an application running on
your system throws an exception that is not handled. Debug on demand is not
available when debugging interpreted Java programs.
You can
also use postmortem debugging to debug a core file containing information on the state of
an application when it trapped. Postmortem debugging is available when debugging locally
only. Postmortem debugging is not available when debugging interpreted Java
programs.
Attaching to a local running
process
Attaching to a remote running
process
Attaching to a running Java Virtual Machine
Enabling
and disabling debug on demand