ariya/phantomjs — comment on commit 1531595d2e2a44c3b9ef425d78fa38614e3ab493
File:  line 0
By lfranchi:

Not sure why you don't see the link with WebKit... WebKit is what provides the remote inspector, right? Something internally there isn't working, and I haven't been able to fix it :)

I agree that your fixes are much better--in fact I had originally done exactly what you did right here. It's just that when I was testing I was using webkit trunk (instead of qt 4.8) and I couldn't get it to work until I loaded the script in a file from the hard disk. So for now this is not a problem, but if/when we are using a newer Webkit and run in to the same problem, we'll know where to look and a short-term fix :)

I have a blog but haven't blogged about this. Good idea though. Until I get around to it, just do this:

./bin/phantomjs --remote-debugger-port=8080 script.js

set breakpoints, call __run(), etc.