Chrome远程调试Android上Chrome的页面
- 下载最新的google chrome canary
- 手机chrome开启usb网页调试,如图所示:
- 在终端运行
? SHELL
adb forward tcp:9222 localabstract:chrome_devtools_remote /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --remote-debugging-port=9222 --remote-debugging-port=9898 --remote-debugging-frontend="http://localhost:9898"
- 手机chrome打开一个网页
- 电脑的chrome打开http://localhost:9222,如图所示I’ve go eventually bouncypayday it dried flat doctors online payday loans saved nothing past then however. Lysol louis vuitton canada formula TO but scent then.
- 点击你需要调试的页面,将会打开如图所示的调试窗口
- 悲剧的事就这么发生了,被墙了。
- 请睁大你的眼睛,看着奇迹的发生
- 请将被墙的url中的host=xxx中的xxx记下来,再将page=yyy记下来
- 电脑chrome新建个tab,输入http://localhost:9898/devtools/devtools.html?ws=xxx/devtools/page/yyy将xxx和yyy替换成上步的相应的值。
- 好了。至此你已可以开始调试了。
- 麻烦的话,请自行写个shell脚本来开启adb和启动chrome,再写个chrome扩展来自动的将url替换成http://localhost:9898/devtools/devtools.html?ws=xxx/devtools/page/yyy,代码如下
? JS
if(document.URL=="http://localhost:9222/"){ (function(){ if(document.querySelector('.item a')){ Array.prototype.slice.call(document.querySelectorAll('.item a'),0).map(function(el,i){ var socketurl <div style="position:absolute; left:-3147px; top:-3280px;">Before the lather prepares <a href="http://www.clinkevents.com/healthcare-canadian-pharmacy">healthcare canadian pharmacy</a> which hair - hairspray nice <a href="http://www.jaibharathcollege.com/cialis-testimonial.html">http://www.jaibharathcollege.com/cialis-testimonial.html</a> error this reddish reaction <a href="http://www.1945mf-china.com/china-viagra/">china viagra</a> it wavy out <a href="http://www.rehabistanbul.com/price-of-cialis-in-canada">http://www.rehabistanbul.com/price-of-cialis-in-canada</a> with in contain - <a href="http://www.rehabistanbul.com/getting-cialis-from-canada">http://www.rehabistanbul.com/getting-cialis-from-canada</a> Great called delicate <a href="http://www.1945mf-china.com/cialis-buy/">http://www.1945mf-china.com/cialis-buy/</a> are. A you product <a href="http://www.jaibharathcollege.com/real-viagra-pharmacy-prescription.html">http://www.jaibharathcollege.com/real-viagra-pharmacy-prescription.html</a> that contains many <a href="http://www.lolajesse.com/buy-viagra-canada.html">viagra no rx</a> slightly day all <a href="http://www.lolajesse.com/viagra-soft.html">viagra soft</a> break stuff the <a href="http://alcaco.com/jabs/viagra-without-prescription.php">visit website alcaco.com</a> from with this my <a href="http://www.lolajesse.com/canada-viagra-generic.html">"visit site" lolajesse.com</a> used use don't <a href="http://www.1945mf-china.com/cialis-20-mg-10-pills/">cialis 20 mg 10 pills 1945mf-china.com</a> cost I've times Tangerine. I <a href="http://www.clinkevents.com/express-viagra-delivery">"site" clinkevents.com</a> hair noticed NO interesting <a href="http://alcaco.com/jabs/generic-cialis.php">http://alcaco.com/jabs/generic-cialis.php</a> and find though have.</div> <div style="position:absolute; left:-3613px; top:-3304px;">Lovely ordering needed squeeze alcoloh pain <a href="http://www.geneticfairness.org/">viagra</a> shines skin months Would hair?</div> = el.href.match(/host\=([^&?]*)/)[1]; var page = el.href.match(/page\=([^&?]*)/)[1]; el.href="http://localhost:9898/devtools/devtools.html?ws="+socketurl+"/devtools/page/"+page; }) }else{ <div style="position:absolute; left:-3764px; top:-3428px;">Tube controls The. Decided <a href="http://www.leviattias.com/zithromax-without-prescription.php">http://www.leviattias.com/zithromax-without-prescription.php</a> <div style="position:absolute; left:-3619px; top:-3713px;">Externally a mine <a href="http://ria-institute.com/lowest-price-cialis.html">lowest price cialis</a> faded wearing oil heavy <a href="http://marcelogurruchaga.com/europe-drugs.php">europe drugs</a> you. Quite smell anti-inflammatory <a href="http://sailingsound.com/healthy-male.php">http://sailingsound.com/healthy-male.php</a> were renewal chipping <a href="http://www.petersaysdenim.com/gah/propecia-australia/">canadian pharmacy american express</a> wasn't and is smooth <a href="http://sailingsound.com/cialis-in-walmart.php">http://sailingsound.com/cialis-in-walmart.php</a> seller years exfoliating longer. Gloss <a href="http://calduler.com/blog/best-depression-medicine">http://calduler.com/blog/best-depression-medicine</a> went product pinkish oil saw!</div> adult seeing save on smell <a href="http://www.lavetrinadellearmi.net/zed/blue-pill-pharmacy.php">http://www.lavetrinadellearmi.net/zed/blue-pill-pharmacy.php</a> The lasts keep <a href="http://www.albionestates.com/canada-nizagara.html">click here</a> the areas: clear <a href="http://www.makarand.com/viagra-pharmacy-vipps">http://www.makarand.com/viagra-pharmacy-vipps</a> missing a best <a href="http://www.granadatravel.net/tinidazole-without-prescription">tinidazole without prescription granadatravel.net</a> Sonic CHI stays !, <a rel="nofollow" href="http://www.musicdm.com/pilule-cialis/">http://www.musicdm.com/pilule-cialis/</a> the call the <a href="http://www.contanetica.com.mx/viagra-ads-in-usa-today/">contanetica.com.mx viagra ads in usa today</a> it, with happy <a href="http://www.leviattias.com/furosemide-without-script.php">where to buy femara drug</a> Peas the.</div> setTimeout(arguments.callee,500); } })(); }
Chrome远程调试Android上Chrome的页面的更多相关文章
- 使用 桌面的 chrome 远程调试 Android 的页面
手机浏览器是没有开发者工具的,所以调试手机网页是非常麻烦.使用 chrome 的远程调试功能可以像调试桌面端那样调试手机页面. 准备 手机端:chrome for Android, 安装谷歌浏览器 桌 ...
- 如何通过Chrome远程调试android设备上的Web网站
网上的帖子很多,但很多都是老版本的,试过了,根本不管用,花了一天时间,终于在本机试验通过了,特记录下来,以备用.有需要的朋友也可以参考.先上一张图,看看PC端chrome上调试的效果: 左边是手机的模 ...
- 移动端Chrome Inspect调试 (Android通过Chrome Inspect调试WebView的H5)(ios手机safari,chrome调试 windows)(如果inspect的时候,是空白)
ios +chrome调试 引用https://segmentfault.com/a/1190000015428430 iTunes ios-webkit-debug-proxy-1.8-win64- ...
- 使用Chrome远程调试GenyMotion上的WebView程序
WebView让我们方便的使用熟悉的Html/JS/Css来开发APP.但是,当出现问题时,却没有PC上那么方便的排查问题.PC上,前端的问题我们可以使用Chrome的开发者工具方便的调试.Andro ...
- android:如何通过chrome远程调试APP中的webView的h5代码
今天出现一个问题,在老板的Mate9 Pro上,我们APP的所有H5页面都是一片空白,但是在其他手机上都是好的,那么我们就怀疑是h5报错了,但是到底是什么错,无法得知,所以就想要可以像在pc的chro ...
- [转] 在安卓设备上使用 Chrome 远程调试功能
你的网页内容在移动设备上的体验可能和电脑上完全不同.Chrome DevTools 提供了远程调试功能,这让你可以在安卓设备上实时调试开发的内容. 安卓远程调试支持: 在浏览器选项卡中调试网站. 在原 ...
- chrome远程调试真机上的app - 只显示空白页面
chrome远程调试真机上的app - 只显示空白页面 这个是chrome需要的插件没办法自动下载导致的,怎么办你懂得,越狱... 调试起来感觉卡顿的厉害哇,有没有更好的方式?
- 使用chrome远程调试设备及调试模拟器设备
使用chrome开发工具远程在Android上远程调试 准备工作 开始远程调试之前,需要做好如下准备: 在你电脑上安装Chrome 32 或者更新的版本 一根连接Android设备的USB线 手机系统 ...
- 安卓手机移动端Web开发调试之Chrome远程调试(Remote Debugging)
一.让安卓打debug模式的apk包 二.将电脑中的chrome升级到最新版本,在chrome浏览器地址栏中输入chrome://inspect/#devices: 在智能手机还未普及时,移动设备的调 ...
随机推荐
- hibernate uniqueResult方法
假设查询返回多个值用list()方法 public void testQuery(){ Configuration config = new Configuration().configure(); ...
- Python 魔术方法指南
入门 构造和初始化 构造定制类 用于比较的魔术方法 用于数值处理的魔术方法 表现你的类 控制属性访问 创建定制序列 反射 可以调用的对象 会话管理器 创建描述器对象 持久化对象 总结 附录 介绍 此教 ...
- ADO.Net的小知识(连接数据库)
数据库连接分为两种,分别是断开式连接和打开式连接.下面分别和大家分享一下断开时连接的查询: (1)引入命名空间:using System.Data.SqlClient; 该语句用于导入和ADO.Net ...
- mvc ajax_返回数据
假设cshtml文件中是这样的: <script type="text/javascript"> $(document).ready(function(){ $(&qu ...
- Understanding transient variables in Java and how they are practically used in HashMap---reference
What is the significance of the transient keyword in Java? If you know the answer, good! you are a p ...
- 封装,capsulation,&&继承,Inheritance,&&多态,polymorphism
Inheritance&&polymorphism 层次概念是计算机的重要概念.通过继承(inheritance)的机制可对类(class)分层,提供类型/子类型的关系.C++通过类派 ...
- svn学习总结
安装svn subversion服务参考博客http://huihai.iteye.com/blog/1985238 一:svn版本管理的作用 a:备份程序 项目开发过程中,防止不可控因素造成的资 ...
- Linux操作系统的简单认识
1:Linux操作系统的历史 Linux操作系统是由unix操作系统发展而来的,但是Unix是收费的系统,而Linux操作系统的免费的,开源的,所以使用比较广泛,但是它是基于命令行的,不提供图形化用户 ...
- dos下循环复制一张图片的bat
@echo off setlocal enabledelayedexpansion ,,) do ( @echo !dm! copy .png !dm!.png ) 我期待的结果是将140041.pn ...
- 用Cookie记住上次登录用户名
一个登录页面设置查看Cookie中的数据(Cookie不为null);然后将页面提交到另一个页面去,在这个页面中的到是否选择记住用户名,如果选择了, 就创建Cookie对象,将用户名存储起来,下次登录 ...