|
-
December 11th, 2009, 12:10 PM
#1
Exception Reporting
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?
-
December 11th, 2009, 04:09 PM
#2
Re: Exception Reporting
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.
-
December 14th, 2009, 03:31 AM
#3
Re: Exception Reporting
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.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post. 
-
December 14th, 2009, 08:34 AM
#4
Re: Exception Reporting
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|