5 ms·
How does that work? I'm not familiar.
by xnx 2y ago
How does that work? I'm not familiar.
- beardyw 2y agoNot seen that one before, but a smart trick. "The debugger statement invokes any available debugging functionality, such as setting a breakpoint. If no debugging functionality is available, this statement has no effect."
- tetris11 2y agoIf you try to inspect the page, the code will run up to the next debugger statement, where one was purposefully inserted near the top of the code. If you try to continue past it, it just loops back onto the debugger statement. If you load the page normally without inspecting it, these debugger statements are ignored.