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
If using the DefaultTraceListener you can add the following section to your app.config file which enables breaking on Debug.Assert(false):
DefaultTraceListener
app.config
Debug.Assert(false)
For details see assert element and DefaultTraceListener.AssertUiEnabled Property.