Hacker News new | ask | show | jobs
by eganist 1587 days ago
I ended up crossposting it to the few security rooms I'm in for quick laughs

But for what it's worth, this also serves as a great initial CTF-type introduction to how debuggers work in web browsers.

1 comments

If the debugger is open, Passwordle automatically breaks the execution right where the answer is determined.

Now that's service.

TIL there's a "debugger" keyword[0] in JavaScript that auto-sets a breakpoint at that line.

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

int 3 of Javascript. I use it all the time because webpacked assets make it hard to find the line of code I am looking for.
If you build source maps this isn’t a problem.
And if you're using nodejs woth source maps, but still getting horrid stacks: "--enable-source-maps"

> NODE_OPTIONS="$NODE_OPTIONS --enable-source-maps"

that is so funny, I learned that today too on a completely different page!!!