Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,10 @@ protected override async Task<bool> AcceptCommand(MessageId id, string method, J
await AttachToTarget(id, token);

if (!contexts.TryGetValue(id, out ExecutionContext context))
return false;
{
// for Dotnetdebugger.* messages, treat them as handled, thus not passing them on to the browser
return method.StartsWith("DotnetDebugger.", StringComparison.OrdinalIgnoreCase);
}

switch (method)
{
Expand Down Expand Up @@ -536,11 +539,8 @@ protected override async Task<bool> AcceptCommand(MessageId id, string method, J
}
}

//ignore all protocol extension messages not supported on .net6
if (method.StartsWith("DotnetDebugger.", StringComparison.Ordinal))
return true;

return false;
// for Dotnetdebugger.* messages, treat them as handled, thus not passing them on to the browser
return method.StartsWith("DotnetDebugger.", StringComparison.OrdinalIgnoreCase);
}
private async Task<bool> CallOnFunction(MessageId id, JObject args, CancellationToken token)
{
Expand Down