ddms之单步调试

第一步,启动emulator

Run the emulator as background process at first.
$./emulator &

第二步,把eclipse切换到DDMS状态。右上角(和java debug在一起那个)

第三步,选择菜单,配置环境

Run->Debug Configurations->Remote Java Application->new

Set Name,like phone
Set project, like android22
Set Host, like localhost
Set Port, like 8602
If you finish all setting, press "Apply
ok, let's go, press "Debug

第四步,等待attached完成

After launching mms: (100%), you can see the green bug attached on your process "com.android.mms".

第五步,设置断点开始debug

After all settings have been done. you can add the breakpoints into the source code where you want to debug.

第六步,执行程序,当走到断点处时,会停在那里。这时候,你在debug这个标签内(和java ddms在一起那个),可以使用:step into , step return, step over etc.(这些命令在Run菜单内,或者面板上都有。)

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值