I was using a console.log() for the millionth time this week when I remembered debugger was a thing.
console.log()
debugger
Side note, but there are also logpoints if you don’t want to clutter your actual code.
Nice post. Definitely some great console methods to know!
Logpoints are also pretty useful depending on your debugging style.
They've been available in VS Code since June of last year, but they also got introduced in Chrome 73, and added in FireFox 67.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I was using a
console.log()
for the millionth time this week when I remembereddebugger
was a thing.Side note, but there are also logpoints if you don’t want to clutter your actual code.
Nice post. Definitely some great console methods to know!
Logpoints are also pretty useful depending on your debugging style.
They've been available in VS Code since June of last year, but they also got introduced in Chrome 73, and added in FireFox 67.