phantomjs --version.Version 2.1.1
Just try to enable remote debugger - specify any known available port
--remote-debugger-port=XXXX
Then use netstat -abno and nothing will appear as listening on port XXXX
Attempts to connect using chrome to that port fail for site not found
No visible errors in phantomjs debug console output
Windows 10
Binary
You have to add --remote-debugger-autorun=yes to enable debugger. Did it work in previous version (1.9.8)?
Hi..
According to the documentation _--remote-debugger-autorun=yes_ is not required to enable debugging.
http://phantomjs.org/troubleshooting.html
It's purpose according to the documentation is
After setting breakpoints (or if you are using debugger instead), to run your script, simply enter the __run() command in the Web Inspector Console. Alternatively, use --remote-debugger-autorun=yes command-line argument to have your script launched immediately.
Either way I tried adding it and it made no difference. I also tried the 1.9.8 binary and that didn't work either.
Has debugging been verified on Windows 10?
Same issue on Windows 10 x64.
[Update] Well. The debugger works after I set "--proxy-type=none" argument.
This still doesn't work.
phantomjs --remote-debugger-port=9001 --remote-debugger-autorun=yes --proxy-type=none
Result: 404 when accesing http://localhost:9001 in a browser.
It seems like it doesn't work anymore in newer versions of Chrome. __run() call doesn't seem to be evaluated nor anything else typed in console.
As an alternative you can try code editor with phantomjs debugger plugin.
Same here, WIndows 10, phantomjs 2.1.1 and Chrome 56.
Also macOS Sierra, PJ 2.1.1, Chrome 57.
Confirm this is also broken on macOS Sierra, Chrome 58.0.3029.110.
It's also broken in Safari and Firefox in different ways.
Same here, Windows7, phantomjs 2.1.1 and Chrome 58 + .
same here, windows 10, phantomjs 2.1.1 and chrome 62
Same here, windows 7, v2.1.1 and Chrome 62. I eneded up replacing it with Puppeteers.
Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!
damn debugging is really important
Most helpful comment
Confirm this is also broken on macOS Sierra, Chrome 58.0.3029.110.
It's also broken in Safari and Firefox in different ways.