Attaching the Debugger to a Running Process
See Also
If you want to debug a program that is already running, you can
attach the debugger to the appropriate process.
You might want to attach the debugger to a running process under
the following circumstances:
-
To debug a running server without stopping or killing it
-
To debug a running GUI program without restarting it
- To debug a program that is looping indefinitely without
killing it
To attach the debugger to a running process:
- Choose Run > Attach Debugger.
The Attach dialog box opens displaying a list of all of your
currently active processes.
- If you want to filter the list of processes, type the string
you want to match in the Filter text box.
- Select the process to which you want to attach the debugger.
- The Project drop-down list includes all open projects.
The IDE can display source files for the process
to which you are attaching only if a project exists for that
program. From the drop-down list, select the project that
represents the program to which you are attaching. If the selected
project does not match the program to which you are attaching, the
attach is aborted.
- Click OK.
Legal Notices