Attaching the Debugger to a Process

You can attach the debugger to an existing process. You may find this necessary when you are debugging your application from outside of the debugger and find a bug.

To attach the debugger to a process:

  1. Select File > Attach To Process… or click the Attach To Process button.

    The Attach To Process dialog box opens.

  2. In the Command/PID Filter field, enter the name of a process you want to attach the debugger to. You can also enter only the first letters of a process name. The process list is filtered and displays only processes that begin with or match the string you entered.
  3. Select the desired process in command field.
  4. Click OK.

Once you attach the debugger to a process, the process continues execution until it raises a signal that the debugger intercepts, such as SEGV. If you have set the $stoponattach debugger variable, it stops immediately.

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.