Setup Workspaces with a mapped script that has a "compile" error, e.g. `
function a() {
const b = 1;
const b = 2;
}
`
If the user has set a breakpoint inside this function, DevTools' BreakpointManager tries to `getPossibleBreakpoints()`, which "compiles" the script, but fails due to the double `const`. Even though we load the source in Sources panel, the failure generates a `Debugger.scriptFailedToParse` event that leads to an infinite loop of `scriptFailedToParse`. Visually, the user sees flashing breakpoints, and a flashing green dot.
GIF: https://imgur.com/a/HeYW9I0
What steps will reproduce the problem?
(1) Setup workspaces and load a site with the script above
(2) Set a breakpoint within the function with 2 consts
(3) Open the file in DevTools' sources panel
What is the expected result?
No flashing
What happens instead?
Flashing
Comment 1 by bugdroid1@chromium.org
, Sep 5