diff --git a/renderdoc/3rdparty/catch/catch.hpp b/renderdoc/3rdparty/catch/catch.hpp index 971706696..eccc06220 100644 --- a/renderdoc/3rdparty/catch/catch.hpp +++ b/renderdoc/3rdparty/catch/catch.hpp @@ -29,6 +29,13 @@ #define CATCH_CONFIG_FORCE_FALLBACK_STRINGIFIER #define CATCH_CONFIG_INLINE_DEBUG_BREAK +// define the debugbreak to not be in a lambda, so that we get the right stack frame! +#define CATCH_BREAK_INTO_DEBUGGER() \ + if(Catch::isDebuggerActive()) \ + { \ + CATCH_TRAP(); \ + } + #include "api/replay/rdcstr.h" #include "api/replay/stringise.h"