Hacker News new | ask | show | jobs
by fairytale 1753 days ago
While this can be seen as somewhat useful, nothing stops you from deactivating breakpoints inside of the "Sources" section in devtools.

I also believe that the same anti-debugging technique is used by obfuscator.io, and is just a feature you can enable for when obfuscating your code on there. It's called "Debug Protection". It does about the same thing you shown in your blog post, making good use of the debugger statement.