设置断点意味着什么?

发布于 2024-08-12 15:24:12 字数 329 浏览 7 评论 0原文

文档对于 Eclipse 来说,蓝色圆圈图标代表

启用行断点

并且复选标记是

将行断点标记为已安装的装饰

在引用断点时,活动、已安装和已启用之间有什么区别?在本例中,是否安装了 Eclipse 特定的定义?

The documentation for Eclipse states that a blue circle icon represents an

enabled line breakpoint

and that a checkmark is an

adornment that marks a line breakpoints as installed

What's the difference between active, installed and enabled, when referring to breakpoints? Is installed -- in this case -- an Eclipse-specific definition?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

绝不放开 2024-08-19 15:24:12

这个线程(2002!)有一个很好的解释对于已安装的断点

蓝色断点表示该断点没有安装。
在较旧的版本中,绿色图标表示断点已成功安装。
安装的断点意味着该类已加载到目标 VM 中,并且已在当前调试目标的所需位置(对于行断点)成功创建断点请求

在当前版本中,已安装的断点通过蓝色“基本”图标顶部的小复选标记覆盖图标来指示。 http://help.eclipse.org/indigo/topic/org.eclipse.jdt.doc.user/images/org. eclipse.jdt.debug.ui/ovr16/installed_ovr.png

可能没有安装断点:

  • 当类未加载(或尚未加载)时
  • 我们的断点位置验证程序无法识别不可执行的代码行,并允许您在该行上放置断点。
  • 当您运行而不是调试时。

jdt文档

  • 启用的断点会导致线程在遇到断点时挂起。启用的断点用蓝色圆圈绘制 http://help.eclipse.org/indigo/topic/org.eclipse.jdt。 doc.user/images/org.eclipse.debug.ui/obj16/brkp_ob​​j.png 并在成功安装后显示复选标记。仅当断点所在的类已被虚拟机加载时才能安装断点。
  • 禁用的断点不会导致线程挂起。禁用的断点用白色圆圈绘制 http://help.eclipse.org/indigo/topic/org.eclipse.jdt。 doc.user/images/org.eclipse.debug.ui/obj16/brkpd_obj.png

This thread (2002!) has a good explanation for installed breakpoints

Blue breakpoints mean that the breakpoint is not installed.
In older builds, a green icon means that the breakpoint was successfully installed.
An installed breakpoint means that the class has been loaded in the target VM and a breakpoint request has been successfully created at the desired location (for a line breakpoint) for the current debug target.

In the current builds, an installed breakpoint is indicated with a small checkmark overlay icon on top of the blue "base" icon. http://help.eclipse.org/indigo/topic/org.eclipse.jdt.doc.user/images/org.eclipse.jdt.debug.ui/ovr16/installed_ovr.png

A breakpoint may not been installed:

  • when the class is not loaded (or not yet loaded)
  • our breakpoint location verifier fails to identify a non-executable line of code and lets you place a breakpoint on that line.
  • when you run instead of debug.

As mentioned in jdt documentation:

  • An enabled breakpoint causes a thread to suspend whenever the breakpoint is encountered. Enabled breakpoints are drawn with a blue circle http://help.eclipse.org/indigo/topic/org.eclipse.jdt.doc.user/images/org.eclipse.debug.ui/obj16/brkp_obj.png and have a checkmark overlay once successfully installed. A breakpoint can only be installed when the class the breakpoint is located in has been loaded by the VM.
  • A disabled breakpoint will not cause threads to suspend. Disabled breakpoints are drawn with a white circle http://help.eclipse.org/indigo/topic/org.eclipse.jdt.doc.user/images/org.eclipse.debug.ui/obj16/brkpd_obj.png.
断爱 2024-08-19 15:24:12

我认为这是一个已编译的断点,下次运行时可用。

I think it's a breakpoint that's been compiled and is available next time you run.

江城子 2024-08-19 15:24:12

Installed 意味着程序在调试时确实会遇到该断点。

Installed means that the program will indeed hit that break point when debugging.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文