c# 4.0 - throw new applicationexception c# but in debug mode do not highlight it -
Hi, It is possible that the new application should be thrown to the application C #, but do not highlight it in the window in debug mode specifically for application option for VS 2012.
No need to show error window
I tried it but I could not find the solution.
You can feature your method with the [debuggerStepThrough] attribute. [DebuggerStepThrough] Public Static Zero ThrowError (...)
Alternatively, you can try: In Visual Studio, " Debug "menu and choose" Exceptions ". In the following dialog you can choose what exceptions should be prevented by Visual Studio
Please note that this is a global setting for the project. This will not stop at any ApplicationException , not only that which was put in ThrowError .
Comments
Post a Comment