UIAutomator remote debug方法
来源:互联网 发布:mac 预览 下一张 编辑:程序博客网 时间:2024/05/23 01:22
转:http://blog.csdn.net/robinzhou/article/details/38273877
前面已经介绍过了UIAutomator的脚本编写办法了,但是脚本的debug一直都没有弄清楚,通过打log的方式来调试脚本是很耗时的,UIAutomator一直都是支持remote debug的,只是官方的文档中没有写,所以中文的文章中也很少找到,通过google,发现有一篇英文的文章说的很清楚,按照做了一遍成功了,这里贴上我的过程,转一个原创吧。
英文文章在 http://stackoverflow.com/questions/21978292/how-do-i-debug-uiautomator-scripts-with-eclipse
- 首先在Debug configration中创建一个实例,如下面两张图所示
- 确保当前的Eclipse是安装了DDMS perspective的。
- 将要调试的程序push 到手机端的 /data/local/tmp/下,执行测试,参数中增加 -e debug true。会看到命令行有“Sending WAIT chunk”的输出,这时候转到Eclips操作。
- 在Eclipse的DDMS perspective的左侧,有进程列表,会看到一个进程标上了红色的虫子,并且最后一列有两个端口号,第二个端口号是我们之前设置的debug端口,说明remote 连接已经成功了。
- 进入到Java程序编辑界面,在需要的地方打上断点。在Debug Configration中启动之前编辑好的debug 配置
- 好了,程序已经停在了之前的断点的地方了
0 0
- UIAutomator remote debug方法
- UIAutomator remote debug方法
- UIAutomator remote debug方法
- UIAutomator remote debug方法
- eclipse通过Remote Java Application调试Uiautomator的方法
- Java远程调试(Remote Debug)方法
- VS2013 建立 remote debugging 远程debug的方法
- remote debug with Tomcat
- Remote debug二三事
- vs remote debug
- Jboss Remote Debug Configure
- Java Remote Debug
- Eclipse remote debug introduction
- java remote debug
- Debug - Remote Debugger
- jboss remote debug 设置
- Android remote debug
- Tomcat Remote Debug
- 单调递增最长子序列
- cin,cin.get(),cin.getline()
- 论程序员的自我解放
- unable to rollback aborted in-doubt branch on resource
- Latent Semantic Analysis(LSA)
- UIAutomator remote debug方法
- 基于pix硬件的apm开发环境搭建
- Product Hunt红遍硅谷的秘密
- How to justify if a file is locked
- I2C(smbus、pmbus)和SPI协议分析
- spring-boot 深入学习
- html a name属性
- 数独求解
- 如何让你的网站用discuz插件变的有力量