Skip to content

Commit 86226c5

Browse files
DotnetDebugger.setDebuggerProperty does not depend of having a session. (#78216)
Co-authored-by: Thays Grazia <[email protected]>
1 parent af314f3 commit 86226c5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,11 @@ protected override async Task<bool> AcceptCommand(MessageId id, JObject parms, C
283283
if (pauseOnException != PauseOnExceptionsKind.Unset)
284284
_defaultPauseOnExceptions = pauseOnException;
285285
}
286-
// for Dotnetdebugger.* messages, treat them as handled, thus not passing them on to the browser
287-
return method.StartsWith("DotnetDebugger.", StringComparison.OrdinalIgnoreCase);
286+
if (method != "DotnetDebugger.setDebuggerProperty")
287+
{
288+
// for Dotnetdebugger.* messages, treat them as handled, thus not passing them on to the browser
289+
return method.StartsWith("DotnetDebugger.", StringComparison.OrdinalIgnoreCase);
290+
}
288291
}
289292

290293
switch (method)

0 commit comments

Comments
 (0)