Can I get an interactive JS debugger working on FontJJs and / or CasperJS?
PhantomJS has a remote-debugger-port option that you can use in Chrome Dev You can use the tool to debug your Casper script. To use it, just execute your Casper script with this argument:
CASSPARE test script. Js --remote-debugger-port = 9000
Then, open in Chrome and click on
about: blank link that presents itself Find yourself in the familiar Chrome Dev Tools area.
Since it is a script and is not a web page, in order to begin debugging, you have to do one of two things before executing your script:
- Open the Chrome Dev Tools page, open the console and run
__ to actually your script
Insert a
debugger into your code Run your Casper script with the line , and an additional
- remote-debugger-autorun = yes By doing this with the remote debug page, the script runs until it's your
debugger; will not hit the line.
is a great one which tells it all very well
No comments:
Post a Comment