How can I stop execution for ALL exceptions during debugging in Visual Studio?

C# does have preprocessor directives (e.g. If, define, etc...) that you could use for this purpose.

C# does have preprocessor directives (e.g. If, define, etc...) that you could use for this purpose. However, you could also modify the settings under "Debug -> Exceptions..." in Visual Studio so that the debugger breaks each time an exception is thrown (before execution goes to the catch block).

Try something like this: if ( System.Diagnostics.Debugger. IsAttached ) System.Diagnostics.Debugger.Break(); else LogException().

If DEBUG // Something #else // Something else #endif.

Take a look at this : dotnetgalactics.wordpress.com/2009/10/22....

I'd hesitate to use preprocessor directives. I'd imagine that you want something that easily applies to your whole solution and not stick preprocessor directives all over your code. Of the previous answers, Joel's is good.

However, you can accomplish the same thing by going to Debug/Exceptions and make sure that the checkboxes in the "Common Language Runtime Exceptions" row are selected. User-unhandled is usually selected by default.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions