From e40fc3678388153fdc27d6a76223bfae8ce23835 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Thu, 5 Mar 2020 15:26:32 -0800 Subject: [PATCH] Update debug proxy to match https://github.com/mono/mono/commit/5973519784e0109c30cdcaf5d47db69026cb2aa1 (#19618) --- .../Server/src/MonoDebugProxy/ws-proxy/MonoProxy.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Components/WebAssembly/Server/src/MonoDebugProxy/ws-proxy/MonoProxy.cs b/src/Components/WebAssembly/Server/src/MonoDebugProxy/ws-proxy/MonoProxy.cs index b5dd1be314..7a391ab59b 100644 --- a/src/Components/WebAssembly/Server/src/MonoDebugProxy/ws-proxy/MonoProxy.cs +++ b/src/Components/WebAssembly/Server/src/MonoDebugProxy/ws-proxy/MonoProxy.cs @@ -282,10 +282,12 @@ namespace WebAssembly.Net.Debugging { var bpid = resp.Value["breakpointId"]?.ToString (); var request = BreakpointRequest.Parse (bpid, args); context.BreakpointRequests[bpid] = request; - var store = await RuntimeReady (id, token); + if (await IsRuntimeAlreadyReadyAlready (id, token)) { + var store = await RuntimeReady (id, token); - Log ("verbose", $"BP req {args}"); - await SetBreakpoint (id, store, request, token); + Log ("verbose", $"BP req {args}"); + await SetBreakpoint (id, store, request, token); + } SendResponse (id, Result.OkFromObject (request.AsSetBreakpointByUrlResponse()), token); return true;