首先来讲一下step into step over step return的区别:
step into就是单步执行,遇到子函数就进入并且继续单步执行;(F5)
step over是在单步执行时,在函数内遇到子函数时不会进入子函数内单步执行,而是将子函数整个执行完再停止,也就是把子函数整个作为一步。(F6)
step return就是单步执行到子函数内时,用step return就可以执行完子函数余下部分,并返回到上一层函
数。(F7)
step into:进入子函数
step over:越过子函数,但子函数会执行
step return:跳出子函数
最基本的操作是:
1, 首先在一个java文件中设断点,然后运行,当程序走到断点处就会转到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-->重新暂挂于断点
分享到:
相关推荐
ins Chapter 9 ■ Working with plug-ins in Eclipse Appendix A ■ Java perspective menu reference Appendix B ■ CVS installation procedures Appendix C ■ Plug-in extension points Appendix...
在这个"Timing-shutdown-procedures.zip_timing debug"压缩包中,包含了一个使用VB.NET编写的定时关机程序,这对于初学者来说是一个很好的学习资源。 1. **定时器控件(Timer Control)** 在VB.NET中,定时器控件是...
《经典有限元书Finite Element Procedures》是Klaus-Jürgen Bathe所著的一本关于有限元分析方法的权威教材。本书在工程分析领域具有很高的学术价值和实用性,自出版以来被广泛使用,并成为相关学科领域的经典参考...
Finite Element Procedures
《Finite Element Procedures》是由K.J. Bathe撰写的一本关于有限元方法的权威著作,这本书在工程计算领域具有广泛的影响。有限元方法(Finite Element Method, FEM)是一种数值计算技术,常用于解决复杂的工程问题...
- **Appendix B: CVS Installation Procedures**: Detailed procedures for installing CVS on different operating systems. - **Appendix C: Plug-in Extension Points**: List of available extension points for...
有限单元法的创始人之一,ADINA的开发者K.J.Bathe的书,非常好的参考教材。
Finite Element Procedures in Engineering_K.J.Bathe BATHE的有限单元书籍
《Finite Element Procedures》这本书可能涵盖了以下关键知识点: 1. **有限元的基本概念**:包括有限元的起源、适用范围、优点和局限性,以及与其它数值方法的比较。 2. **数学基础**:涉及线性代数、微积分、偏...
Oracle Debug调试是数据库管理员和开发人员在开发和优化PL/SQL代码时不可或缺的工具。它允许用户逐行执行存储过程,检查变量值,设置断点,以便更好地理解代码的运行流程,找出潜在的问题和错误。以下是对Oracle调试...
NAME: Finite Element Procedures Author: Klaus-Jurgen Bathe Page:1050 Publish: PRENTICE HALL Filetype: djvu ISBN :0-13-301458-4 language : English
第四节 存储过程(stored procedures)2---马克-to-win java视频
It is shown that any recognition problem solved by a polynomial time-bounded nondeterministic Turing...measuring the complexity of proof procedures for the predicate calculus is introduced and discussed.
有限元书Finite Element Procedures by Bathe 1996
有限元书Finite Element Procedures by Bathe 1996
这篇文档,"审计程序 - 交易Auditing Procedures - transactions.pdf",主要针对审计专业人员和对英语有一定掌握的人群,它深入探讨了审计交易领域的核心内容,包括销售、采购和薪资等主要交易类型,以及与这些交易...
### 中文的LTE36-211协议 Physical layer procedures #### 概述 本技术规范3GPPTS36.213 V8.76.0(2009-03)由3rd Generation Partnership Project (3GPP)制定,主要针对Evolved Universal Terrestrial Radio ...
Nationally recognised as the definitive guide to clinical nursing skills, The Royal Marsden Manual of Clinical Nursing Procedures has provided essential nursing knowledge and up-to-date information on...
Reimbursement application procedures Reimbursement application procedures Reimbursement application procedures Reimbursement application procedures
Programming Oracle Triggers And Stored Procedures 英文第三版 自制CHM格式,可DropDownList选章选节阅读,可调节字体大小,大大方便了Viliv S5等手持上网设备的阅读。 注意: 由于内部使用了MS XML Parser,本...