| ... | @@ -689,7 +689,7 @@ pub fn abort() noreturn { | ... | @@ -689,7 +689,7 @@ pub fn abort() noreturn { |
| 689 | // even when linking libc on Windows we use our own abort implementation. | 689 | // even when linking libc on Windows we use our own abort implementation. |
| 690 | // See https://github.com/ziglang/zig/issues/2071 for more details. | 690 | // See https://github.com/ziglang/zig/issues/2071 for more details. |
| 691 | if (native_os == .windows) { | 691 | if (native_os == .windows) { |
| 692 | if (builtin.mode == .Debug) { | 692 | if (builtin.mode == .Debug and windows.peb().BeingDebugged != 0) { |
| 693 | @breakpoint(); | 693 | @breakpoint(); |
| 694 | } | 694 | } |
| 695 | windows.kernel32.ExitProcess(3); | 695 | windows.kernel32.ExitProcess(3); |