Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't see breakpoint symbol in Eclipse Mars2 because it is hidden by another symbol

I have an arrow symbol in the line where I would like to have a break point (see first red circle). How can I tell Eclipse to always show the break point symbol?

enter image description here

Is there an Eclipse setting to show the breakpoint symbol always on top? Or can I choose a larger break point icon that would be visible behind the arrow?

In order to reproduce the issue, search for a string that is located on the line (Strg+H) and use the search result tree to navigate to that line.

Work around: right click on the arrow symbol. If there is an option "Disable Breakpoint" the Breakpoint is currently active.

like image 891
Stefan Avatar asked Jun 30 '16 10:06

Stefan


People also ask

Why breakpoints are not working in Eclipse?

Check that your project is in the Source tab in Debug Configurations. If it's not then the breakpoints are ignored.

How do I enable breakpoints in Eclipse?

Breakpoints To define a breakpoint in your source code, right-click in the left margin in the Java editor and select Toggle Breakpoint. Alternatively, you can double-click on this position. The Breakpoints view allows you to delete and deactivate Breakpoints and modify their properties.

How do I add a breakpoint to all methods in Eclipse?

Select all the methods using ctrl . Right click and select Toggle Method Breakpoint .

How do I toggle breakpoints?

The breakpoint is a toggle. You can click it, press F9, or use Debug > Toggle Breakpoint to delete or reinsert it. To disable a breakpoint without deleting it, hover over or right-click it, and select Disable breakpoint.


1 Answers

Couple of possible solutions:

1) Don't show search result arrow:

Go to Window -> Preferences -> General -> Editors -> Text Editors -> Annotations. Click Search Results and un-check Vertical ruler checkbox. Apply.

2) Highlight line where breakpoint is set.

Go to Window -> Preferences -> General -> Editors -> Text Editors -> Annotations. Click Breakpoints and check Text as checkbox. Apply.

like image 172
Aleksandr M Avatar answered Oct 30 '22 01:10

Aleksandr M