From 40395549f96eb500eb7157ae7a33b5ff22254c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Wed, 6 Sep 2023 23:03:17 +0300 Subject: [PATCH] Reset single stepping state when debugger pauses on exceptions --- TitanEngine/TitanEngine.Debugger.DebugLoop.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp b/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp index 5c67b07..ad59593 100644 --- a/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp +++ b/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp @@ -1431,6 +1431,8 @@ __declspec(dllexport) void TITCALL DebugLoop() //general unhandled exception callback if(DBGCode == DBG_EXCEPTION_NOT_HANDLED) { + engineStepActive = false; + if(DBGCustomHandler->chUnhandledException != NULL) { myCustomHandler = (fCustomHandler)((LPVOID)DBGCustomHandler->chUnhandledException);