From 5a3b5f43c8e92fa59459065957736cdd321353e1 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Wed, 5 Aug 2020 21:28:31 -0500 Subject: [PATCH] Consider debug levels less than zero disabled (#40429) --- src/mono/wasm/runtime/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/wasm/runtime/driver.c b/src/mono/wasm/runtime/driver.c index 0400c39..971cd57 100644 --- a/src/mono/wasm/runtime/driver.c +++ b/src/mono/wasm/runtime/driver.c @@ -386,7 +386,7 @@ mono_wasm_load_runtime (const char *unused, int enable_debugging) #endif #else mono_jit_set_aot_mode (MONO_AOT_MODE_INTERP_ONLY); - if (enable_debugging) { + if (enable_debugging > 0) { // Disable optimizations which interfere with debugging interp_opts = "-all"; mono_wasm_enable_debugging (enable_debugging); -- 2.7.4