When to attach

There are two main reasons for attaching the Debugger to a process or JVM:

ngwin.gif (1069 bytes) 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.

Note: You can attach the Debugger to an already running program or a running Java Virtual Machine (JVM) where an error or failure has occurred.

ngrelt.gif (466 bytes)
ngaix.gif (1051 bytes)ngwin.gif (1069 bytes)Attaching to a local running process
Attaching to a remote running process
ngjava.gif (225 bytes)Attaching to a running Java Virtual Machine
ngwin.gif (1069 bytes)Enabling and disabling debug on demand