对于要安装的断点意味着什么? [英] What does it mean for a breakpoint to be installed?
问题描述
:
- 启用断点会导致线程在遇到断点时挂起。启用的断点用蓝色圆圈,并成功安装了一个复选标记。断点只能在虚拟机加载断点类时才能安装。
- 禁用的断点不会导致线程挂起。禁用的断点用白色圆圈绘制。
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?
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.
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 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 .
这篇关于对于要安装的断点意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!