Skip to content

Commit

Permalink
backport of 82852 (#82854)
Browse files Browse the repository at this point in the history
  • Loading branch information
thaystg committed Mar 9, 2023
1 parent 2486cb8 commit cd2e0a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ protected override async Task<bool> AcceptEvent(SessionId sessionId, JObject par
if (!contexts.ContainsKey(sessionId))
return false;

if (args?["callFrames"]?.Value<JArray>()?.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<string>();
switch (top_func) {
Expand Down

0 comments on commit cd2e0a6

Please sign in to comment.