无数据线 debug
2015-10-19 18:07
190 查看
当你没有数据线的时候也想debug,怎么办?还有就是测试串口的时候,那个插口要被占用,无法跟电脑保持adb连接,怎么办?
话不多说。官方文档
When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. This will prevent you from having an
USB. You can still access
Connect the Android-powered device via USB to your computer.
From your SDK
Enter
To set your device to listen on USB, enter
具体如下
1:借根数据线连上手机和电脑
2:打开终端cmd,cd到sdk里的platform-tools/目录,输入adb tcpip 5555
3:查看手机ip,然后输入adb connect 手机ip : 5555
4:完成,还线
话不多说。官方文档
Debugging considerations
When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. This will prevent you from having an adbconnection to the Android-powered device via
USB. You can still access
adbover a network connection. To enable
adbover a network connection:
Connect the Android-powered device via USB to your computer.
From your SDK
platform-tools/directory, enter
adb tcpip 5555at the command prompt.
Enter
adb connect <device-ip-address>:5555You should now be connected to the Android-powered device and can issue the usual
adbcommands like
adb logcat.
To set your device to listen on USB, enter
adb usb.
具体如下
1:借根数据线连上手机和电脑
2:打开终端cmd,cd到sdk里的platform-tools/目录,输入adb tcpip 5555
3:查看手机ip,然后输入adb connect 手机ip : 5555
4:完成,还线
相关文章推荐
- 神器SystemTap
- Python 七步捉虫法
- Lua编程示例(一):select、debug、可变参数、table操作、error
- C#中的两种debug方法介绍
- 用Ruby实现一个单元测试框架的教程
- js调试工具 Javascript Debug Toolkit 2.0.0版本发布
- php debug 安装技巧
- Lua中的异常处理pcall、xpcall、debug使用实例
- 在Python编程过程中用单元测试法调试代码的介绍
- Android APK使用Debug签名重新打包 Eclipse更改默认Debug签名
- Node.js 学习笔记之一
- Openstack Murano(Kilo) 网络排错
- 如何利用Object Browser图形化工具提高Oracle开发工作效率(二)对象创建管理篇
- 在Eclipse里调试Vert.X
- node 调试
- zg手册 之 scrapy 开发(7)-- 爬虫调试
- Skyeye open source simulator
- Debug skyeye arm_hello code in Eclipse
- 当程序崩溃的时候怎么办
- 理解 Win32 "OutputDebugString"