From 07ed42b7edde78e4fdd8a628feaa85478ca29e7d Mon Sep 17 00:00:00 2001 From: Thays Grazia Date: Tue, 8 Nov 2022 18:01:04 -0300 Subject: [PATCH] DotnetDebugger.setDebuggerProperty does not depend of having a session. --- src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs b/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs index b311dc01e60e39..387718d08b269d 100644 --- a/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs +++ b/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs @@ -283,8 +283,11 @@ protected override async Task AcceptCommand(MessageId id, JObject parms, C if (pauseOnException != PauseOnExceptionsKind.Unset) _defaultPauseOnExceptions = pauseOnException; } - // for Dotnetdebugger.* messages, treat them as handled, thus not passing them on to the browser - return method.StartsWith("DotnetDebugger.", StringComparison.OrdinalIgnoreCase); + if (method != "DotnetDebugger.setDebuggerProperty") + { + // for Dotnetdebugger.* messages, treat them as handled, thus not passing them on to the browser + return method.StartsWith("DotnetDebugger.", StringComparison.OrdinalIgnoreCase); + } } switch (method)