If DevTools sees a script that it has seen before and has a breakpoint for, it will invoke Debugger.setBreakpointByUrl. However, if the script contents are different, in particular if the file is smaller than before, the location may be invalid. Throwing an exception is trouble in this case, returning a null breakpoint ID works.
If DevTools sees a script that it has seen before and has a breakpoint for, it will invoke
Debugger.setBreakpointByUrl
. However, if the script contents are different, in particular if the file is smaller than before, the location may be invalid. Throwing an exception is trouble in this case, returning a null breakpoint ID works.