I\'m trying to set up remote debugging with PhantomJS, without much luck. I am following the instructions at https://github.com/ariya/phantomjs/wiki/Troubleshooting. I have a li
In my case the __run()
would not be executed in the console.
If this is the same issue you have, read on....
Open PowerShell and execute the script:
cls
# we go to the folder where our test.js script resides
cd "C:\Users\xxx\Phantomjs.Console"
phantomjs --remote-debugger-port=9000 --remote-debugger-autorun=yes test.js
__run()
under Watch Expressions!Put a debugger
statement in your script for debugging!