Debug Settings VS2005 - "Break on All Errors"

  • Thread starter Thread starter iKiLL
  • Start date Start date
I

iKiLL

Hi all



I am still pretty new to .Net and C#.

I have come from a VB6 Background.



I am using VS2005 to develop an C# Windows mobile 5.0 application.



What I am looking for is the setting that is equivalent to the VB6 "Break on
All Errors". And in particular for any thread that may be running.



My error handlers keep catching my errors in different threads and it is
taking me ages just to track down exactly where they are happening.



Many thanks,

ink
 
If you go to the debug menu then select Exceptions, there are two radio
button sets at the bottom which will achieve what you want.
The settings apply to each of the groups, and optionally each of the
exceptions beneath that group.
 
Thanks DevX

i have found what you sugested on the web already but i don't seem to have
the Exceptions item in my Debug menu.

i am using C# with VS2005 and working on a Windows Mobile application.

is there not some other setting that i maybe need to change first to get the
Exceptions item in my debug menu?

Thanks.
ink
 
Hi DevX


i have found that <Ctrl + Alt + E> bring up an exception window but there
are no radio buttons only a tree view with check boxes next to each item in
the tree and the child items.

and none of them say "Break on All Errors"

What should i be looking for?

Thanks,
ink
 
Ah sorry, I'm using 2003 still and don't have '05 installed here, I
can't remember off the top of my head, but I will check when I get home
and update you if no one else has.
Which edition of 2005 are you using? The one of the full ones, ie
standard, professional, or express?
 
Hi,

It's still there, just that a little different :)

You have the exceptions listed in 5 sections, the one that you should care
the most is common or managed exceptions. next to it you should check the
thrown option, this will break in the debugger when an exception is thrown
in your code.
 
Thanks for your input IgM.



I get the Idea now. Then you can hit Reset to put them all back after
testing.





DevX i am on Professional but I believe I have the solution. Thanks for your
input.
 
Good stuff :) I must get 2005 installed in the office, we only use it
for web stuff at the moment although I (and many others) are pushing to
get it used for non web stuff too.

Main reason for posting though is I've just run up the XNA version of
VS express and it works exactly the same way as full VS 2005 with
regards to exceptions.
 
Back
Top