summaryrefslogtreecommitdiff
blob: 709f46ee97341e37b096bafb0aaec2a642136bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- parity.runtime/diagnose.c.orig	2012-09-28 17:12:54 +0200
+++ parity.runtime/diagnose.c	2012-09-28 17:11:14 +0200
@@ -745,9 +745,11 @@
 		CloseHandle(hCore);
 	}
 
-	// abort on fatal exceptions
-	TerminateProcess(GetCurrentProcess(), 1);
-	ExitProcess(1);
+	if (!IsDebuggerPresent()) {
+		// abort on fatal exceptions
+		TerminateProcess(GetCurrentProcess(), 1);
+		ExitProcess(1);
+	}
 	return EXCEPTION_CONTINUE_SEARCH;
 }