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();