diff --git a/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs b/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs index 21c79bd30afa4..15682c6dad1e3 100644 --- a/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs +++ b/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs @@ -175,6 +175,9 @@ protected override async Task AcceptEvent(SessionId sessionId, JObject par if (!contexts.ContainsKey(sessionId)) return false; + if (args?["callFrames"]?.Value()?.Count == 0) + return false; + //TODO figure out how to stich out more frames and, in particular what happens when real wasm is on the stack string top_func = args?["callFrames"]?[0]?["functionName"]?.Value(); switch (top_func) {