Chrome远程调试不适用于IP [英] Chrome remote debugging doesn't work with IP

查看:418
本文介绍了Chrome远程调试不适用于IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  chrome.exe  - 使用远程调试选项在chrome中远程调试chrome实例

remote-debugging-port = 1337

如google页面所述: http://code.google.com/chrome/devtools/docs/remote-debugging.html



问题是当我尝试使用IP访问它时,它无法正常工作,而使用localhost:1337进行测试确实无法正常工作。



有什么想法?

解决方案

您可以设置SSH隧道来远程调试。在源机器上执行:

  ssh -L 0.0.0.0:9223:localhost:9222 localhost -N 

然后在其他计算机上 Chrome 浏览器转到 http:// source-machine-ip 9223

I'm trying to remote debugg a chrome instance using the remote debug option in chrome:

chrome.exe --remote-debugging-port=1337

as described on google page: http://code.google.com/chrome/devtools/docs/remote-debugging.html

the problem is when i try to access it using IP it doesn't work, while testing it with localhost:1337 does work.

any idea?

解决方案

You can setup an SSH tunnel in order to debug remotely. On the source machine execute:

ssh -L 0.0.0.0:9223:localhost:9222 localhost -N 

Then on the other machine point Chrome browser to http://source-machine-ip:9223

这篇关于Chrome远程调试不适用于IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆