Fix*_*int 77 java eclipse debugging breakpoints
在Eclipse中使用断点时,我有时会注意到它们有不同的图标/注释(左侧边栏上的标记).有时它只是一个蓝色的球,有时候它上面有一个勾号,有时它会被划掉.所有这些注释意味着什么?
sle*_*ske 137
disable上下文菜单中删除复选标记)skip all breakpoints断点视图中的按钮)Tom*_*son 17
tick表示断点已成功设置.我想它可能只在你进行远程调试时出现; 当你添加一个断点时,它会以普通球的形式开始,但是一旦远程系统中的JPDA代理被告知它,并确认它已经设置好,那么就会得到一个滴答.
我已经创建了一个内联解释的示例代码.
public class Breakpoints {
int field1; // watchpoint - suspend when field1 is read
int field2; // watchpoint - suspend when field1 is written
int field3; // watchpoint - suspend when field1 is read or written
public void method() {
int x;
x = 10; // suspend before this line is executed
x = 11; // same as above but this breakpoint is temporarily disabled
for (int i = 0; i < 100; i++) {
x = i; // conditional breakpoint - suspend when i==5
}
}
}
Run Code Online (Sandbox Code Playgroud)

一旦你Skip All Breakpoints在Breakpoints视图中选择(Window | Show Viev | Debug | Breakpoints),所有的图标就会像这样对角线:

我认为@sleske 给出的答案解释了除以下内容之外的所有内容:
Blue Ball with Tick : Breakpoint 成功设置,因为您的源代码与字节代码匹配,调试控制将到达那里。
只有蓝球:源代码与字节代码不同(可能您正在运行旧的代码快照)。控制永远不会到达这个断点。您必须更新 JAR 才能控制这些断点。
| 归档时间: |
|
| 查看次数: |
30856 次 |
| 最近记录: |