Hacker News new | ask | show | jobs
by MindTwister 1836 days ago
Are you lamenting that you reach for `console.log` first, instead of using the `debugger` statement, or are you wishing there was a `debugger` statement, because there absolutely is a `debugger` statement. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
1 comments

I'm lamenting that I reach for console.log first and then regret it. Every single time.
Huh, why do you think you do that? Do you forget about the debugger statement, or is there some other reason you think console logging might work well?