Chrome远程调试本地网站上的虚拟机端口转发 [英] Chrome Remote Debugging a local site on a Virtual Machine with port forwarding

查看:795
本文介绍了Chrome远程调试本地网站上的虚拟机端口转发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Chrome浏览器的插件ADB延伸和启用USB调试。
我可以看到我列出的设备检查和工作正常。

I have installed the ADB plugin extension for Chrome and enabled USB debugging. I can see my device listed for inspecting and that works fine.

我不知道是如何映射我开发的网站,在虚拟机上 192.168.56.2 运行。我不知道如何配置端口转发选项。

What I don't know is how to map my developing website which is run on a virtual machine on 192.168.56.2 . I don't know how to configure the port forwarding option.

所以我的地方发展机(Mac OS)中,我有这样的主机配置:

So for my local development machine (Mac OS), I have this hosts config:

sandbox.local 192.168.56.2

和我访问 HTTP://sandbox.local 来看看我的网站

and I access http://sandbox.local to see my website.

但我不知道该怎么办,我的Andr​​oid设备上进行调试的移动网站布局。

But I don't know how to do that on my Android device to debug the website layout for mobile.

我试过:

启用端口转发和 8088 - > 192.168.56.2:80

现在,当我去我的移动设备,然后输入:

now when I go to my mobile device and enter:

localhost:8088

我看到本地主机没有找到消息。
有人可以帮我处理这件事吗?

I see localhost not found message. Can someone help me set this up?

推荐答案

镀铬现在包括手机仿真功能,使用它可以模拟设备无论在哪里的页面。

Chrome now includes Mobile Emulation feature, with which you can emulate a device regardless of where the page is.

这篇关于Chrome远程调试本地网站上的虚拟机端口转发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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