ASP.NET exception debugging and .NET Framework source stepping

Last post 06-22-2009 5:06 PM by justing. 0 replies.

Sort Posts:

  • ASP.NET exception debugging and .NET Framework source stepping

    06-22-2009, 5:06 PM
    • Member
      23 point Member
    • justing
    • Member since 08-18-2002, 7:09 PM
    • Posts 14

    In order to pop up into the VS debugger when an exception happens in an ASP.NET application, you need to enable "Just My Code" in debugger options (because otherwise the top-level exception handler for custom error pages will swallow the exception and the debugger never sees it).

    But enabling Just My Code disables the ability to step into the .NET Framework source, and enabling stepping into .NET Source in turn disables Just My Code (and hence disables ASP.NET debugging of exceptions). 

    Frequently I need to step into framework source to understand a problem better, and I almost always want to catch unhandled exceptions in the debugger. But it's a big hassle to have to constantly toggle those settings during every debug session.

    Can this be fixed so that I can just leave ASP.NET Exception debugging and .NET Framework Source Stepping enabled all the time?

Page 1 of 1 (1 items)