使用Android进行热插拔调试 [英] Hot swap debugging with Android

查看:276
本文介绍了使用Android进行热插拔调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1)在Android上启用热插拔调试是否需要特殊的设置/配置?

1) Is there any special setting/configuration required to enable hot swap debugging on Android?

示例案例:


  • 在进入活动的onCreate方法后添加断点。

  • 断点后添加新行(假if(1 == 1)返回;代码)

  • 下一步指令
    - >问题:我的调试器不会在这一行中断开,而是跳过下一个引导我来相信新的线路不热交换到虚拟机中。

2)只有模拟器支持热插拔?有没有任何手机也支持它?

2) Does only the emulator support hot swap? Are there any handsets which also support it?

推荐答案

仿真器本身不支持代码hotswap,但使用其他工具,如InstaReloader可以实现期望的动作。您可以免费使用此 Android hotswapping工具

The emulator itself doesn't support code hotswap, but with additional tools like InstaReloader desired action can be achieved. You can use this Android hotswapping tool for free

这篇关于使用Android进行热插拔调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆