Skip to content

Commit 76e386c

Browse files
committed
CrashHandler: Debug break on abort() if debugger attached
1 parent 8327282 commit 76e386c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/common/crash_handler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ static void AbortSignalHandler(int signal)
208208
WriteMinidumpAndCallstack(nullptr, "Pure call handler invoked");
209209
}
210210

211+
if (IsDebuggerPresent())
212+
__debugbreak();
213+
211214
TerminateProcess(GetCurrentProcess(), 0xFAFAFAFAu);
212215
}
213216

0 commit comments

Comments
 (0)