Chrome真机调试webapp

一、针对android设备

1、在android设备上开始开发者模式

2、将设备连接到PC,在chrome浏览器地址栏输入:chrome://inspect/#devices

3、在手机上打开网页的时候,chrome就会检测到网页,可以直接调试

二、针对IOS设备

PS:如果使用的是MAC电脑,可以直接在safari的开发里面找到,我的Iphone里面可以检测网页

1、在Iphone的设置-》safari-》高级-》web检查器。打开

2、在电脑上安装ios_webkit_debug_proxyRemoteDebug iOS WebKit Adapter

3、启动RemoteDebug iOS WebKit Adapter

remotedebug_ios_webkit_adapter --port=9000

4、在chrome地址栏输入:chrome://inspect/#devices,在Discover network targets里面增加localhost:9000,就可以在chrome里面调试手机页面了。

原文地址:https://www.cnblogs.com/pycmsj/p/12881325.html