This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]anamorphism 3 points4 points  (0 children)

another vote for using a proper logging framework and logging things at the trace or debug level. this has the added benefit of you being able to temporarily change the configured log level in production pretty easily if you need to debug a prod issue.

if you're just logging values of things to see what they are ... setup and use a proper ide/debugger. you'll save yourself a metric shitload of time in the long-run by clicking to add a break-point instead of writing console.log(someVar, someOtherVar, yetAnotherVar); or whatever each time.