Is there any way to cause Visual Studio 2010 to break while debugging when the argument of Debug.Assert
evaluates to false
?
Example: in my
If by debugging you mean using "Step Into" feature, see this MS's answer to the problem.
http://connect.microsoft.com/VisualStudio/feedback/details/522995/system-diagnostics-debug-assert-doesnt-pop-up-messagebox-correctly-when-step-into-it-in-vs-2010-and-2008
Using "Step Over" at the Assert statement does solve the issue too (for me).