How do I disable the Visual Studio 2008 debugger at the line where the error occurs?

Whenever I am working in debug mode, my application is closed whenever an error occurs. The expected result is that the VS debugger stops at the line where the error occurs.

I am running VS 2008 on Win 7 Pro x64.

Is there anybody out there with the same problem and resolved successfully?

+2


source to share


1 answer


The reason your program stopped should be in the output window.

If the program just ended, you can debug it to see why it stopped too soon.

If not, chances are you are getting an exception that is not trapped.
Go to the Debug / Exceptions menu item:



image1 http://img27.imageshack.us/img27/5899/screen001l.jpg

And check the box next to the exception. You are most likely getting one of the Win32 exceptions:

image2 http://img27.imageshack.us/img27/6976/screen002j.jpg

+4


source







All Articles