C#

C# debug application startup

Posted by Kerwen Blog on January 6, 2020

Add

1
System.Diagnostics.Debugger.Launch();

to Application_Start. You’ll get a popup asking you if you want to debug the website, and if you click OK, you’ll be taken to Visual Studio in debug mode, paused at that line.