Hitting Breakpoints in Global.asax using Visual Studio

Visual Studio

In a recent article, Shahed Chowdhuri asks what will happen if you create a breakpoint in the Global.asax file.

Every .NET developer should know how to set breakpoints in Visual Studio 2012.

  • Right-click a line in your code, then select Breakpoint -> Insert Breakpoint.
  • Or, simply press F9 after placing your cursor on the line of code.

But, what if that line of code is in your Global.asax code? Will the breakpoint still work when you run the application? If not, what can you do to get it to work?

Using simple examples and screenshots, Shahed shows you how to configure your IDE for allowing breakpoints in your Global.asax file.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.