Use setBreakpoint instead of setBreakpointByUrl. When breakpoints are set with the setBreakpoint API, Chrome will not try to persist breakpoints across page reloads. This was causing an issue where Chrome might still be hanging onto a breakpoint that didn't exist in the debugging client.
Remove the logic to try to re-establish breakpoints after a page reload. This is not what the VM service does. Instead, the debugging client should be in charge of re-establishing the breakpoints.
Fixes https://github.com/dart-lang/webdev/issues/2257
setBreakpoint
instead ofsetBreakpointByUrl
. When breakpoints are set with thesetBreakpoint
API, Chrome will not try to persist breakpoints across page reloads. This was causing an issue where Chrome might still be hanging onto a breakpoint that didn't exist in the debugging client.See go/dart-web-phantom-breakpoints for more details