Attaching to a Running Process

Occasionally you will need to start debugging a process that is already running. This has happened to me with ASP.NET applications. Every once in a while some inexplicable internal calamity will occur and I won't be able to start an ASP.NET application in debug mode. Instead of rebooting, which usually resolves the problem, I can start the application without debugging. (Start without Debugging is on the Debug menu immediately following the Start menu.) After starting the application I can then successfully attach to the process and pick up debugging after the fact.

The key here is to know which process to attach to. If you are trying to debug a Windows application, you want to attach to the Windows process. If ...

Get Visual Basic® .NET Power Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.