Skip to content

Instantly share code, notes, and snippets.

@thomascwo
Forked from kamoshi/debugger.js
Created February 12, 2025 16:08
Show Gist options
  • Save thomascwo/d50bf3303a593873b103335aa6c4d264 to your computer and use it in GitHub Desktop.
Save thomascwo/d50bf3303a593873b103335aa6c4d264 to your computer and use it in GitHub Desktop.
JS debugger loop hack
function H(n) {
function e(t) {
if ("string" == typeof t) return function(t){}.constructor("while (true) {}").apply("counter");
(t % 20 == 0)
? function() { return !0 }.constructor("debugger").call("action")
: function() { return !1 }.constructor("debugger").apply("stateObject"),
e(++t)
}
e(0)
}
setInterval(() => H(), 1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment