Click to See Complete Forum and Search --> : Exception Reporting


codeGuy85
December 11th, 2009, 11:10 AM
I am running my .Net application with 3.5 sp1,with IDE Visual C# Express 2008

If I run the program using Start Debugging (F5) and run into an exception my program quits back into the IDE but doesn't show me what exception I ran into or any error messages, it just simply closes out back to the IDE.

If I run my program from my Debug folder and run the same scenario as above, I do get my exception and can appropriately debug and catch.

Is this normal behavior or have I disabled something?

BigEd781
December 11th, 2009, 03:09 PM
If you run a Debug build under the debugger and your program crashes it should highlight the line which was being executed when the crash occurred.

boudino
December 14th, 2009, 02:31 AM
In VS's menu Tools/Options/Debugging, you can enable/disable Exception Assistant.
In VS's menu Debug/Exceptions, you can set if the exception raised should be reported on throw, or if is is unhandled. Try set on throw, because poorly used try-catch can swallow the exception.

codeGuy85
December 14th, 2009, 07:34 AM
Thanks guys, I'll take a look into the debug exceptions menu.

As for the unknown exception. I think I have isolated it to being a call I make to a server and in the case the server never responds it hangs until timeout, if I throw another call it should queue it but in some cases its bringing my application down.