What does it mean for a breakpoint to be installed?

后端 未结 3 1363
广开言路
广开言路 2021-01-17 12:33

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

enabled line breakpoint

and that a checkmark is an

相关标签:
3条回答
  • 2021-01-17 12:51

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

    0 讨论(0)
  • 2021-01-17 12:53

    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.
    0 讨论(0)
  • 2021-01-17 13:10

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

    0 讨论(0)
提交回复
热议问题