热插拔调试与Android [英] Hot swap debugging with Android

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

问题描述

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

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

例如案例:

  • 在刚进入活动的onCreate方法后添加断点。
  • 在断点后加入新行上飞(虚拟如果(1 == 1)回报;code)
  • 步骤到下一条指令 - >问题:我的调试器不破这条线,而不是跳过下导致我相信,新的生产线没有热交换到虚拟机
  • Add breakpoint just after entering activity's onCreate method.
  • Add new line on the fly after the breakpoint (dummy "if (1==1) return;" code)
  • Step to next instruction --> Problem: my debugger doesn't break at this line, instead skipping to the next leading me to believe the new line was not hot swapped into the VM.

2)是否只有仿真器支持热插拔?是否有手机也支持呢?

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

推荐答案

本身不支持code热插拔,但与其他工具一样InstaReloader期望可以实现行动的模拟器。您可以使用此 Andorid的热交换进行工具免费

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

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

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