From 90c7986fdc3c59d7d6a17e3ad687989a965fc8ee Mon Sep 17 00:00:00 2001 From: Thays Grazia Date: Tue, 20 Dec 2022 16:28:33 -0300 Subject: [PATCH] Fixing generating a signal when running on release mode (#79822) --- src/mono/mono/component/debugger-stub.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mono/mono/component/debugger-stub.c b/src/mono/mono/component/debugger-stub.c index 615383b2a00..7304b55809d 100644 --- a/src/mono/mono/component/debugger-stub.c +++ b/src/mono/mono/component/debugger-stub.c @@ -161,7 +161,8 @@ stub_debugger_end_exception_filter (MonoException *exc, MonoContext *ctx, MonoCo static void stub_debugger_user_break (void) { - G_BREAKPOINT (); + if (get_mini_debug_options ()->native_debugger_break) + G_BREAKPOINT (); } static void -- 2.34.1