Hacker News new | ask | show | jobs
by enoex1 4324 days ago
For errors I'll always log the full stack trace (in JS, at least). This helps a ton for when errors occur, but I find that often times it's not explicit errors that are a problem (e.g., making sure the right message is sent and received from a queue system). Of course, setting breakpoints can give more information, but it's not always obvious where a breakpoint needs to be set (e.g., when a new person comes on the team) - for me, logging points me to where I need to set breakpoints, speeding up my development time.