安卓调试技巧

  • 我们调试的点在应用一打开的时候,很靠前,例如Application的onCreate方法中,以至于我们不能足够快的设置进程为debug模式
  • 虽然上面的情况可以通过Android Studio的debug运行来解决,但是如果项目很大的话,运行起来也会比较耽误时间
  • 解决办法:adb shell am set-debug-app -w --persistent com.example.jishuxiaoheiwu.appdebugsample
  • debug完以后调用命令行adb shell am clear-debug-app

猜你喜欢

转载自blog.csdn.net/qq_15867901/article/details/79656247