runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Failed to set a breakpoint on Codespaces

Open digeff opened this issue 6 years ago • 6 comments

DebugProxy.SetBreakpoint failed to set a breakpoint on Blazor/Codespaces.

We got a scriptParsed event: image We tried setting a breakpoint: image Both on lines 0 and line 13 and they failed: image

I'm attaching the debug adapter log with all these messages. blazor not hitting bp visualstudio-js-debugger.txt

digeff avatar Sep 23 '20 22:09 digeff

Tagging subscribers to this area: @tommcdon See info in area-owners.md if you want to be subscribed.

ghost avatar Sep 23 '20 22:09 ghost

Tagging subscribers to this area: @thaystg See info in area-owners.md if you want to be subscribed.

ghost avatar Sep 24 '20 01:09 ghost

This is because the current proxy was only acting on setBreakpointByUrl, we can add a handler for setBreakpoint but in the meantime you should be able to set a breakpoint there by calling setBreakpointByUrl with url (not urlRegex) set to the dotnet://NewBlazorWasm.dll/... url in url and dotNetUrl (not the scriptId)

lewing avatar Sep 25 '20 19:09 lewing

@lewing Do the urlRegexp version work? (it might be easier for us to get that one working)

digeff avatar Sep 25 '20 20:09 digeff

That should also work as long as the regex matches what is in the url param of the scriptParsed event

lewing avatar Sep 25 '20 20:09 lewing

I believe this particular issue has been fixed

lewing avatar Jul 31 '21 20:07 lewing