I have some code that I am trying to debug, but the debugger keeps stopping in Debug::Assert.
///
/// Asserts the value of the passed in expression.
///
/// Expression to assert
[Hookable(false)]
public static void assert(boolean _expression)
{
if (!_expression)
{
const int numberOfStackFramesToSkip = 2;
var trace = new System.Diagnostics.StackTrace(numberOfStackFramesToSkip); // avoid the assert() method frame (and 'assert() one)
XppRuntimeEventSource::EventWriteDebugAssert(trace.ToString());
if (Debug::debuggerIsAttached())
{
System.Diagnostics.Debugger::Break();
}
}
}
It seems its calling the Debug::Assert statement in some of the standard code in DimensionStorage that calls it, and I can't get passed it.
Every time I press Continue, it simply stops at it again.
Can I stop it from hitting it in some way?