title: Cannot get node-inspector working
body: <p>I have a basic express app that I am trying to debug but I cannot get node inspector working correctly on OSX</p>
  
  <p>In one terminal window I run:</p>
  
  <pre><code>node --debug-brk server.js
  </code></pre>
  
  <p>In another terminal window I run:</p>
  
  <pre><code>node-inspector
  </code></pre>
  
  <p>Node Inspector opens here:</p>
  
  <pre><code>http://localhost:8080/debug?port=5858
  </code></pre>
  
  <p>In another browser tab I try to open my site here </p>
  
  <pre><code>http://localhost:8080/
  </code></pre>
  
  <p>I get printed to screen</p>
  
  <pre><code>Cannot GET /
  </code></pre>
  
  <p>If I open instead</p>
  
  <pre><code>http://localhost:3000
  </code></pre>
  
  <p>I get my app because I set this in server.js</p>
  
  <pre><code>app.set('port', process.env.PORT || 3000);
  </code></pre>
  
  <p>But now none of the breakpoints work in the debugger</p>
  
  <p>I am sure I am doing something stupid here but I have read the docs and tutorials over and over and I cannot get this to work.</p>
  
  <p>The other things I have tried is in one terminal window running:</p>
  
  <pre><code>node-debug server.js
  </code></pre>
  
  <p>I get the same thing as above. Debug inspector opens and is stopped at first line and my site at </p>
  
  <pre><code>http://localhost:8080
  </code></pre>
  
  <p>still says </p>
  
  <pre><code>Cannot GET /
  </code></pre>
  
  <p>I also tried </p>
  
  <pre><code>node-debug --no-debug-brk server.js
  </code></pre>
  
  <p>An I get the same result except node inspector in not stopped at first line</p>