You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
I'm trying to run my testsuite.js in debug mode but am unable to do so because the casper module cannot be found. I presume this is because the debugger uses the context of the browser you run it in and so you lose access to the filesystem.
Steps to reproduce:
From the terminal, run phantomjs --remote-debugger-port=9000 testsuite.js
Navigate to http://localhost:9000 in a browser (I use Chrome)
In the console, type __run()
An exception is thrown with message: cannot find module 'casper'.
It would be great to know how you guys go about debugging against PhantomJS.
The text was updated successfully, but these errors were encountered:
It'll be interesting to find out if we can run PhantomCSS in remote-debugger, I haven't looked into it before.
As you say, PhantomJS has an inner scope (browser) and outer scope, looks like it's trying to evaluate Casper in the inner scope, which is wrong.
I only ever need to debug PhantomCSS when I'm updating it for some reason, this is normally limited to logging. For day-to-day test suite stuff we make good use of CasperJS's logging
I'm closing this issue. Not sure if it still applies, probably a setup thing. FYI, https://github.com/Huddle/PhantomFlow supports remoting debugging, and wraps PhantomCSS.
I'm trying to run my testsuite.js in debug mode but am unable to do so because the casper module cannot be found. I presume this is because the debugger uses the context of the browser you run it in and so you lose access to the filesystem.
Steps to reproduce:
phantomjs --remote-debugger-port=9000 testsuite.js
http://localhost:9000
in a browser (I use Chrome)__run()
An exception is thrown with message:
cannot find module 'casper'
.It would be great to know how you guys go about debugging against PhantomJS.
The text was updated successfully, but these errors were encountered: