title: How do I debug Node.js applications?
body: <p>How do I debug a Node.js server application?</p>
  
  <p>Right now I'm mostly using <em>alert debugging</em> with print statements like this:</p>
  
  <pre><code>sys.puts(sys.inspect(someVariable));
  </code></pre>
  
  <p>There must be a better way to debug. I know that <a href="http://en.wikipedia.org/wiki/Google_Chrome" rel="noreferrer">Google Chrome</a> has a command-line debugger. Is this debugger available for Node.js as well?</p>