Is there any way to cause Visual Studio 2010 to break while debugging when the argument of Debug.Assert evaluates to false?
Debug.Assert
false
Example: in my
Use the Debugger.Break method (in the System.Diagnostics namespace). This will break execution if you are running in a debugger.
System.Diagnostics