氧气中毒 - J2EE

爪吐奕奕征途
posts - 24, comments - 10, trackbacks - 0, articles - 0
   :: 首页 :: 新随笔 ::  ::  :: 管理

eclipse debug (调试) 学习心得

Posted on 2006-06-14 15:04 氧气中毒 阅读(4163) 评论(2)  编辑  收藏 所属分类: 环境配置
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-->重新暂挂于断点


评论

# re: eclipse debug (调试) 学习心得  回复  更多评论   

2006-08-09 14:35 by cawhong
好文,谢谢~~

# re: eclipse debug (调试) 学习心得  回复  更多评论   

2007-01-22 09:49 by 路过
如果能具体再说一下怎样使用那就更好了

只有注册用户登录后才能发表评论。


网站导航: