3 ms·
it's undermined by `debugger` statements these days designed to make it difficult to inspect page content
by tetris11 2y ago
it's undermined by `debugger` statements these days designed to make it difficult to inspect page content
- xnx 2y agoHow 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.