Java Eclipse 中蓝色断点标记顶部的小勾是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18393736/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 01:09:51  来源:igfitidea点击:

What is the little tick on top of the blue breakpoint marker in Eclipse means?

javaeclipsedebugging

提问by user1589188

When you toggle a breakpoint in Eclipse, on the left you get a blue marker. Sometimes the blue marker is accompanied with a tick, what does that mean? Thank you

当您在 Eclipse 中切换断点时,您会在左侧看到一个蓝色标记。有时蓝色标记带有一个勾号,这是什么意思?谢谢

Edit: It seems non of you know exactly what I am talking about, here goes the pic of it... breakpoint with/without tickand in the breakpoint panel breakpoint panel

编辑:似乎你们都不知道我在说什么,这是它的照片...... 带/不带刻度的断点在断点面板中断点面板

采纳答案by sergej shafarenka

The tick is only shown when you have an active debug session at that line. It means your breakpoint is active and attached to the bytecode running in debug mode. Debugger cannot (and will never) stop at breakpoints without that "tick".

只有当您在该行有活动的调试会话时才会显示勾号。这意味着您的断点处于活动状态并附加到在调试模式下运行的字节码。没有那个“滴答声”,调试器不能(也永远不会)在断点处停止。

If you don't have this "tick" at some lines then your have differences between the bytecode and the source code you debug. This can happen when debugged bytecode has not been produced by the attached source code or bytecode has been compiled without debugging information like line numbers etc.

如果您在某些行中没有这个“勾号”,那么您在字节码和您调试的源代码之间存在差异。当附加的源代码未生成调试的字节码或编译的字节码没有调试信息(如行号等)时,就会发生这种情况。