So, I start with a protractor, and I want to debug my test 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 < allItems.length; ++i) {
var elem = allItems[i];
var text = elem.findElement(by.css('.li-title').getText());
if (text == "Specs")
specsDashboardElement = elem;
}
expect(specsDashboardElement.isDisplayed()).toBe(true);
});
});
I followed these instructions , but this is the result that I see on the node.js debug console:
D:\src\apps\j1-test.module > conf.js
< 5858
... ok
C:\Users\j\AppData\\npm\node_modules\protractor\lib\cli.js: 7
5 * .
6 */
7 'use strict',
8
9// , , - script.
debug > cont
< ------------------------------------
< PID: 9756 (: # 1)
< ------------------------------------
< 5858
debug >
. , "cont", .
WebStorm ( WebStorm:
"C:\Program Files\nodejs\ node.exe" --debug-brk = 2259 C:\Users\j\AppData\\npm\node_modules\protractor\lib\cli.js conf.js
2259
PID: 2708 (: # 1)
2259
).
node 0.10.26 (64 ) Windows 8
-?