From 5dc5f6c2303d009b3db871540c4e78d2c3d8b91b Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Wed, 22 Apr 2020 13:15:49 -0500 Subject: [PATCH] Silence the runtime output from the debugger (#20975) * Silence the runtime output from the debugger * Update src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts Co-authored-by: Pranav K --- src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts b/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts index e05dcc9b8e..3387db38b3 100644 --- a/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts +++ b/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts @@ -297,7 +297,8 @@ function createEmscriptenModuleInstance(resourceLoader: WebAssemblyResourceLoade MONO.mono_wasm_setenv("MONO_URI_DOTNETRELATIVEORABSOLUTE", "true"); const load_runtime = cwrap('mono_wasm_load_runtime', null, ['string', 'number']); - load_runtime(appBinDirName, hasDebuggingEnabled() ? 1 : 0); + // -1 enables debugging with logging disabled. 0 disables debugging entirely. + load_runtime(appBinDirName, hasDebuggingEnabled() ? -1 : 0); MONO.mono_wasm_runtime_ready (); attachInteropInvoker(); onReady();