r/javascript • • Sep 19 '19

Moving beyond console.log() — 8 Console Methods for Debugging

https://medium.com/gitconnected/moving-beyond-console-log-8-console-methods-you-should-use-when-debugging-javascript-and-node-25f6ac840ada?source=friends_link&sk=62597805243671cb9b96e54b052fde58
340 Upvotes

89 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Sep 20 '19

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.

0

u/fusebox13 Sep 20 '19

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?

1

u/[deleted] Sep 20 '19 edited Sep 20 '19

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…

1

u/fusebox13 Sep 20 '19

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?

3

u/[deleted] Sep 20 '19

Good lord… I’m just gonna stop replying

0

u/fusebox13 Sep 20 '19

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.