From 271a801834ee2d84b292a9ffa3cf8ecf2a843833 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 18 Oct 2021 12:33:20 -0400 Subject: [PATCH] Add console command `App.Crash` to debug garbled stack traces. --- Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp b/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp index 38daf6b9..dd861e04 100644 --- a/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp +++ b/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp @@ -2525,6 +2525,11 @@ PF_CONSOLE_CMD( App, // groupName PrintString( str ); } +PF_CONSOLE_CMD(App, Crash, "", "") +{ + *((int*)0) = 0; +} + #endif // LIMIT_CONSOLE_COMMANDS PF_CONSOLE_CMD( App, // groupName