2008-09-02

How to Make Visual Studio 2008 Continue After an Unhandled Exception

I was debugging an app that was not handling a particular exception; and I found that after the Exception Assistant dialog appeared and I hit F5 to continue, that it would repeatedly recall the offending line of code which would again throw the exception.

I searched the net and found this forum thread on MSDN that shed some light on how to allow the program to continue after the exception is thrown.

Tools >> Options >> Debugging >> General
(General options show if you only go to Debugging)

Uncheck the "Unwind the call stack on unhandled exceptions" to prevent the debugger from reverting to the offending line as the next statement to call.

4 comments:

Anonymous said...

That is exactly what I needed to know, thanks for the post!

That One Guy said...

@Lee:
I'm glad it helped you!

Those kinds of things drive me crazy when I don't know how to get past them. :)

Rachat de credit said...

Thanks a ton it was a fantastic support, now to make visual studio 2008 continue after an unhandled exception is definitely easy with your guidance. Kudos

That One Guy said...

@Rachat de credit:
Thanks! I'm happy to be of assistance.