How to debug android application built with maven

心已入冬 提交于 2019-12-05 01:24:52

The way I do it is ,

  1. Enable debug flag in AndroidManifest.xml file.
  2. Deploy the app on device. You should now see the process id of your application on eclipse debug manager.
  3. Now, configure a run/debug configuration of remote java application in eclipse run/config menu.
  4. Enter all details of the configuration. The port number will be 3rd column from you image attachment.
  5. After starting the application on device "run the remote java application configuration" in eclipse.
  6. You application should now hit the breakpoints if any.

Add

android:debuggable="true"

to manifest and turn on "USB Debugging" on your device.

http://developer.android.com/tools/device.html#setting-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!