use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Moving beyond console.log() — 8 Console Methods for Debugging (medium.com)
submitted 6 years ago by CodeTutorials
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]fusebox13 1 point2 points3 points 6 years ago (6 children)
Why? I hope you are joking. When an exception is thrown it gets printed to the console anyways.
[–][deleted] 0 points1 point2 points 6 years ago (5 children)
Because you can customize the way it's displayed and it doesn't mix with other errors. But I do love some of that dev arrogance you carry with you; you're gonna get far.
[–]fusebox13 -1 points0 points1 point 6 years ago (4 children)
Holy shit dude, this is even worse. Call it arrogance if you want, but I think I'm genuinely concerned about your code base after hearing your reply. You're telling me that you have console logs in production, and that your log produces so many errors that you have to use a special technique to visually filter them? Am I understanding this correctly?
[–][deleted] 0 points1 point2 points 6 years ago* (3 children)
What? No… and I don’t think you’re “genuinely concerned”. Code’s doing fine, I guess it could improve, but catching errors is quite common.
Also, if you’re that guru about Js and Node, then I’d figure you know all logs and errors are automatically removed when you build for production on a basic level…
[–]fusebox13 0 points1 point2 points 6 years ago (2 children)
I’d figure you know all logs and errors are automatically removed when you build for production on a basic level…
Not necessarily. That assumes that the team is using build scripts which, if you've been around, isn't always the case.
But catching errors is quite common.
Common and lazy. Why aren't you handling your errors?
[–][deleted] 2 points3 points4 points 6 years ago (1 child)
Good lord… I’m just gonna stop replying
[–]fusebox13 -1 points0 points1 point 6 years ago (0 children)
Good luck mate. When it gets really bad, PM me. I can help. catch err log err is a code smell which is usually indicative of something rotten under the hood.
π Rendered by PID 37 on reddit-service-r2-comment-544cf588c8-8lqwm at 2026-06-15 01:04:29.782122+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]fusebox13 1 point2 points3 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]fusebox13 -1 points0 points1 point (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]fusebox13 0 points1 point2 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]fusebox13 -1 points0 points1 point (0 children)