Google chrome 我的PhantomJS远程调试尝试有什么问题?

Google chrome 我的PhantomJS远程调试尝试有什么问题?,google-chrome,phantomjs,javascript-debugger,Google Chrome,Phantomjs,Javascript Debugger,我遵循了这里的说明: 我在这里看到了这样的情况: 但我一辈子都不能用PhantomJS进行远程调试。以下是我尝试过的: [ubuntu:phantom]$ phantomjs --version 1.9.1 [ubuntu:phantom]$ phantomjs --remote-debugger-port=9001 test.js & [1] 14037 [ubuntu:phantom]$ sudo netstat -pntl Active Internet connections

我遵循了这里的说明:

我在这里看到了这样的情况:

但我一辈子都不能用PhantomJS进行远程调试。以下是我尝试过的:

[ubuntu:phantom]$ phantomjs --version
1.9.1
[ubuntu:phantom]$ phantomjs --remote-debugger-port=9001 test.js &
[1] 14037
[ubuntu:phantom]$ sudo netstat -pntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:9418            0.0.0.0:*               LISTEN      1075/git-daemon 
tcp        0      0 127.0.0.1:5038          0.0.0.0:*               LISTEN      1466/asterisk   
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1629/apache2    
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1466/asterisk   
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      1089/dnsmasq    
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      968/cupsd       
tcp        0      0 127.0.0.1:5984          0.0.0.0:*               LISTEN      1363/beam.smp   
tcp6       0      0 :::9418                 :::*                    LISTEN      1075/git-daemon 
tcp6       0      0 ::1:631                 :::*                    LISTEN      968/cupsd       
[ubuntu:phantom]$ google-chrome localhost:9001
Created new window in existing browser session.
[ubuntu:phantom]$
[ubuntu:phantom]$ nc localhost 9001

上述内容(毫不奇怪)为Chrome打开了一个
Oops!Google Chrome无法连接到localhost:9001
。我不应该在9001上看到一个开放的端口吗?据我所知,Chrome应该连接到一个(可能)空白页面,我只是在JS控制台中运行
\uu run()
。但就目前的情况来看,没有任何东西是开放的。。。我甚至连netcat都做不到。

运行phantomjs,因为sudo似乎在做这个把戏

你找到这个问题的解决方案了吗?我有点被困在sameI上了,我得到了完全相同的结果,但是在Windows10中,PJS2.1.1-netstat-abno在指定的端口上监听时不会产生任何结果