Causes the debugger to attach this process.
Assembly: EnvDTE (in EnvDTE.dll)
The following example demonstrates how to use the method.
To test this method
Run the target application in the nondebug mode. Make sure that the application contains an infinite loop.
Run the add-in.
Set the breakpoint inside the infinite loop.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.