title: Debugging inside asynchronous callbacks
body: <p>I have the following code: </p>
  
  <pre><code>...
  fs.readdir('mydir', function(error, files)
  {
    for(var i = 0; i &lt; files.length; i++)
    {
      console.log(files[i]);
    }
  });
  ...
  </code></pre>
  
  <p>When I try to debug the code inside my callback function, the debugger just skips over the callback and only executes code before and after (in the ellipses).  Is there a special flag that I need to set to be able to debug asynchronous code?</p>
  
  <p>I have verified that the callback runs because I am getting output of the file names.</p>