title: debugging protactor (with / without webstorm)
body: <p>So I'm starting out with protractor, and I want to debug my test code:  </p>
  
  <pre><code>describe('stuff', function(){
  
  it('should find the specs item, and its empty', function(){
      browser.debugger();
      gotoHome();
      var allItems = element.all('li in model.tags');
      var specsDashboardElement;
      for (var i=0 ; i &lt; allItems.length; ++i) {
          var elem = allItems[i];
          var text = elem.findElement(by.css('.li-title').getText()); // does this even work?? dunno
          if (text == "Specs")
              specsDashboardElement = elem;
      }
  
      expect(specsDashboardElement.isDisplayed()).toBe(true);
  
  });
  </code></pre>
  
  <p>});</p>
  
  <p>I've followed <a href="https://github.com/angular/protractor/blob/master/docs/debugging.md" rel="nofollow">these instructions</a>, but this is the output I see on the node.js debugger console:  </p>
  
  <blockquote>
    <p>D:\src\apps\j1-test.module>protractor debug conf.js<br>
    &lt; debugger listening on port 5858<br>
    connecting... ok<br>
    break in C:\Users\j\AppData\Roaming\npm\node_modules\protractor\lib\cli.js:7<br>
      5  * Values from command line options override values from the config.<br>
      6  */<br>
      7 'use strict';<br>
      8<br>
      9 // Coffee is required here to enable config files written in coffee-script.<br>
    debug> cont<br>
    &lt; ------------------------------------<br>
    &lt; PID: 9756 (capability: chrome #1)<br>
    &lt; ------------------------------------<br>
    &lt; debugger listening on port 5858<br>
    debug>  </p>
  </blockquote>
  
  <p>and that's it. no matter how many types I type 'cont', nothing happens.<br>
  I've tried following the instructions for debugging in WebStorm, with much the same result (output on the WebStorm debug console:</p>
  
  <blockquote>
    <p>"C:\Program Files\nodejs\node.exe" --debug-brk=2259 C:\Users\j\AppData\Roaming\npm\node_modules\protractor\lib\cli.js
     conf.js<br>
    debugger listening on port 2259<br>
        PID: 2708 (capability: chrome #1)<br>
    debugger listening on port 2259</p>
  </blockquote>
  
  <p>).  </p>
  
  <p>I'm using node 0.10.26 (64 bit) on windows 8</p>
  
  <p>Ideas anyone?</p>