Attaching the Debugger to a Running Process
See Also
If you want to debug a project that is already running, you can
attach the debugger to the project's running process. You must select
the process and the associated project to enable the debugger to display source
files along with the debugging information.
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 Debug > 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.
Select the project that
represents the process to which you are attaching. If the selected
project does not match the process to which you are attaching, the
attach is aborted.
- Click OK.
Legal Notices