English 中文(简体)
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. 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.
问题回答

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

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





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.

热门标签