Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add debugger support please #85

Closed
sneakywombat opened this issue Oct 24, 2014 · 3 comments
Closed

add debugger support please #85

sneakywombat opened this issue Oct 24, 2014 · 3 comments

Comments

@sneakywombat
Copy link

Could you please add remote-debugger-port and remote-debugger-autorun?

I tried to hack this in myself,

index.js:
if (this.options.debuggerPort !== null) {
flags.push('--remote-debugger-port='+this.options.debuggerPort);
flags.push('--remote-debugger-autorun=yes');
}

But it didn't work, the console complained with the following:

phantom stdout: TypeError: 'undefined' is not a function (evaluating 'core_require('webpage')')

about:blank:5433
about:blank:5642
about:blank:179
about:blank:25
about:blank:5645
:1

@reinpk
Copy link
Contributor

reinpk commented Nov 9, 2014

hmmm, seems like this may be an underlying issue with phantom:
http://stackoverflow.com/questions/13490324/running-phantomjs-node-js-together-on-ubuntu

but i'm seeing the same error with phantomjs 1.9.7.... so maybe this is an issue that just isn't being addressed until 2.0

@reinpk
Copy link
Contributor

reinpk commented Nov 9, 2014

leaving similar code on a branch here until we have more info:
https://github.com/segmentio/nightmare/tree/add/debugger

@reinpk
Copy link
Contributor

reinpk commented Sep 13, 2015

in 2.x we've moved from phantomjs to electron, which has fixed a bunch of weird issues. among other things, you can now pass in { show: true } as a constructor argument to just show the window as things are happening.

yield Nightmare({ show: true })
        .goto('http://walmart.com/')
        .click(...);

hopefully this helps with debugging!

@reinpk reinpk closed this as completed Sep 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants