Nothing on DotNet-Web, so trying advanced...
When I am debugging an ASP.NET page and hit an exception, I would like the
same behavior I get when debugging a WinForms application. That is, the
debugger pops up on the offending line. This does not happen in ASP.NET
because of the default error handler.
So is there a way to disable the default error handler? Something I can put
in the web config?
I have tried hooking the Application_Error event with the code below [1]. I
do indeed get the debugger to pop up, but the stack is mess having come back
through a ton of ASP.NET code.
Any suggestions?
Thanks,
curt
[1]
if ( System.Diagnostics.Debugger.IsAttached == true)
System.Diagnostics.Debugger.Break();
You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.