Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    You need to learn how to use a debugger and use a proper logging framework. It will make you much happier than printing to the console (that doesn't always exist). Commented Jan 23, 2014 at 22:13
  • 7
    It is important to learn to use debuggers, however, there are many situations you may encounter where printf debugging is the only debugging method available. Commented Jan 23, 2014 at 23:13
  • I'll just comment that 7 years later - for JavaScript development, then yes - console.log is the primary debugging strategy I use. For Java development it's a bit more of a pain as a compiling and rerunning your code is often a lot more cumbersome. Commented May 20, 2021 at 3:56