最基本的操作是: 
     1.首先在一个java文件中设断点,然后debug as-->open debug Dialog,然后在对话框中选类后--> Run 
     当程序走到断点处就会转到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-->重新暂挂于断点

最新文章

  1. linux(centos)下挂载nefs文件系统
  2. SQL Server如何在变长列上存储索引
  3. Intent和Intent Filters
  4. linux之V4L2摄像头应用流程【转】
  5. uva1262Password
  6. orderby group by
  7. Altium Designer10 如何导出Gerber文件
  8. C++ 让控制台运行到最后按下回车键才结束的3种方法
  9. JAVA常用类库简介(转)
  10. 采用 matlab 阅读SAR 元数据
  11. pig函数以及关键字 的一些实例应用的总结(来自pig笔记)
  12. hibernate框架(1)---Hibernate增删改查
  13. Yarn常用命令总结
  14. 【LeetCode算法-14】Longest Common Prefix
  15. metrics+spring+influxdb整合
  16. 探秘 Java 热部署
  17. 尚硅谷springboot学习7-yaml配置文件
  18. PAT甲题题解-1076. Forwards on Weibo (30)-BFS
  19. petri网初步
  20. 第1章 1.2计算机网络概述--Intenet和广域网

热门文章

  1. 适配6 、6P 来源互联网
  2. 03.product.js
  3. [Flex] as3xls读取excel,修改保存单表(二)
  4. role在标签中的作用是什么?
  5. 用HTML代码加载Unity内容(unity频道:http://unity3d.9ria.com/)
  6. Java学习笔记——static关键字与静态的使用方法
  7. BC-Clarke and five-pointed star(水)
  8. Hdfs增量导入小文件合并的思路
  9. 错误记录,找不到sqlite dll
  10. Oracle corrupt block(坏块) 详解