Android: eclipse debug调试
来源:互联网 发布:js点击小图弹出大图 编辑:程序博客网 时间:2024/06/04 20:05
step into (F5):单步执行遇到子函数进入并且继续单步执行;
step over (F6):单步执行时在函数内遇到子函数时不进入子函数内,而是将子函数整个执行完再停止,也就是把子函数整个作为一步。
step return (F7):就是单步执行到子函数内时,用step return就可以执行完子函数余下部分,并返回到上一层函数。
Run to Line: 运行到鼠标所在的行处停下
最基本的操作是:
1、首先设断点,然后运行,当程序走到断点处就会转到debug视图下,
2、F5键与F6键均为单步调试,F5是step into,也就是进入本行代码中执行,F6是step over,也就是执行本行代码,跳到下一行
3、F7是跳出函数
4、F8是执行到最后。
////////////////////////////////////////////////
1.Step Into (also F5) 跳入
2.Step Over (also F6) 跳过
3.Step Return (also F7) 执行完当前method,然后return跳出此method
4.step Filter 逐步过滤 一直执行直到遇到未经过滤的位置或断点(设置Filter:window-preferences-java-Debug-step Filtering)
5.resume 重新开始执行debug,一直运行直到遇到breakpoint
6.hit count 设置执行次数 适合程序中的for循环(设置 breakpoint view-右键hit count)
7.inspect 检查 运算。执行一个表达式显示执行值
8.watch 实时地监视变量的变化
9.我们常说的断点(breakpoints)是指line breakpoints,除了line breakpoints,还有其他的断点类型:field(watchpoint)breakpoint,method breakpoint,exception breakpoint.
10.field breakpoint 也叫watchpoint(监视点) 当成员变量被读取或修改时暂挂
11.添加method breakpoint 进入/离开此方法时暂挂(Run-method breakpoint)
12.添加Exception breakpoint 捕抓到Execption时暂挂(待续...)
断点属性:
1.hit count 执行多少次数后暂挂 用于循环
2.enable condition 遇到符合你输入条件(为ture\改变时)就暂挂
3.suspend thread 多线程时暂挂此线程
4.suspend VM 暂挂虚拟机
13.variables 视图里的变量可以改变变量值,在variables 视图选择变量点击右键--change value.一次来进行快速调试。
14.debug 过程中修改了某些code后--〉save&build-->resume-->重新暂挂于断点
- Android: eclipse debug调试
- Android 开发中使用Eclipse Debug调试
- Android 开发之Eclipse Debug调试详解
- android eclipse debug 调试 Source not found
- eclipse debug (调试) 学习心得
- eclipse debug (调试)
- eclipse debug调试
- eclipse tomcat debug调试
- eclipse debug (调试) 学习心得
- eclipse debug (调试) 命令
- Eclipse debug (调试) 学习心得
- eclipse debug远程调试
- eclipse debug 调试
- eclipse debug (调试) 学习心得
- eclipse debug (调试) 学习心得
- Eclipse --debug 调试技巧
- eclipse debug (调试) 学习心得
- eclipse debug (调试) 学习
- 链接库的创建和使用
- JVM 内存初学 (堆(heap)、栈(stack)和方法区(method) )
- android.support.v4.app.Fragment vs android.app.Fragment 的区别
- OpenOffice.org中的XML应用
- win 8 系统的安全性真的那么差么?
- Android: eclipse debug调试
- 点击链接按钮后页面总是自动滚动至顶部的解决方法
- LeetCode OJ - Palindrome Partitioning II
- Source Insight 显示全路径
- PHP 生成图片缩略图
- 彻底解决Javascript数字计算不精确的问题
- BZOJ2159 Crash 的文明世界 题解
- 幸福就在你转身的瞬间
- 官方的说法二十