Prevent running the crash_handler when a debugger is present on windows

This commit is contained in:
Marcelo Fernandez
2017-09-18 16:29:23 -03:00
parent 3d06957f12
commit ff1e0a3e2c
5 changed files with 26 additions and 22 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ static void handle_crash(int sig) {
void *bt_buffer[256];
size_t size = backtrace(bt_buffer, 256);
String _execpath = OS::get_singleton()->get_executable_path();
String msg = GLOBAL_GET("debug/settings/backtrace/message");
String msg = GLOBAL_GET("debug/settings/crash_handler/message");
// Dump the backtrace to stderr with a message to the user
fprintf(stderr, "%s: Program crashed with signal %d\n", __FUNCTION__, sig);