Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Unable to set up debugging #549

Closed
Closed
@sJhonny

Description

@sJhonny

I've followed the instruction on debugging (https://github.com/angular/protractor/blob/master/docs/debugging.md), both with node debugger and with webstorm, but with no success.
In both cases, I just get a console message saying that the node debugger is listening, but my breakpoints aren't being hit.

output from node debugger:

D:\src\apps\j1-test.module>protractor debug conf.js
< debugger listening on port 5858
connecting... ok
break in C:\Users\j\AppData\Roaming\npm\node_modules\protractor\lib\cli.js:7
5 * Values from command line options override values from the config.
6 */
7 'use strict';
8
9 // Coffee is required here to enable config files written in coffee-script.
debug> cont
< ------------------------------------
< PID: 9756 (capability: chrome #1)
< ------------------------------------
< debugger listening on port 5858
debug>

I'm trying to debug example_spec.js:

describe('angularjs homepage', function() {
  it('should greet the named user', function() {
    browser.get('http://www.angularjs.org');
    browser.debugger();
    element(by.model('yourName')).sendKeys('Julie');

    var greeting = element(by.binding('yourName'));

    expect(greeting.getText()).toEqual('Hello Julie!');
  });

any Idea?

P.S.
same thing, unanswered, on SO- http://stackoverflow.com/questions/21992414/debugging-protactor-with-without-webstorm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions