title: Testing javascript with Mocha - how can I use console.log to debug a test?
body: <p>I am using the javascript test-runner "Mocha".</p>
  
  <p>I have a test that is failing, so I would to debug it using <code>console.log</code>.</p>
  
  <p>But when the tests are run, there is no output (only the test results from Mocha).
  It seems like Mocha has captured and suppressed my <code>console.log</code> output!</p>
  
  <p>How can I get Mocha to show my output? (at for tests that fail)?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Huge apologies! — <code>console.log</code> does work during tests!  I must have been expecting it to suppress the output, and I didn't properly check my own code.  Thanks for responding.
  So... that being said... maybe it actually would be nice to suppress the output for tests that pass? hmm...</p>
  
  <p>On a related note: I want to use <code>console.log</code> because I am having a lot of trouble trying to get the Eclipse debugger to connect to node.js.</p>
  
  <p>Am I the only one who finds this tricky?  How do you guys debug node.js?  With a debugger, or with <code>console.log</code> statements?</p>