Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse double-click line number for breakpoint

This is probably one of the more silly questions you find on StackOverflow, but I truely cannot find the problem here.

I run Eclipse 3.7.2 (I20110613-1736) (Ubuntu 12.04 LTS version). After recent updates, my org.eclipse.wst.jsdt.core.jsNature projects don't toggle breakpoints when double-clicking on line numbers anymore. Instead, it makes a bookmark and asks me to enter a bookmark-name.

Breakpoints work fine though, and I can add them using Ctrl+Shift+B, but after years of habit, I keep making bookmarks because I want to double-click.

The General -> Keys preferences dialog doesn't have an option for assigning mouseclicks (AFAIK), so it doesn't look like those settings have changed.

like image 253
Redsandro Avatar asked Sep 18 '12 10:09

Redsandro


People also ask

How do I set breakpoint conditions in eclipse?

Right-click the breakpoint icon ( ) or watchpoint icon ( ) in the marker bar, and then select Breakpoint Properties. This opens a Properties dialog box. To add a hit count, select Hit count, click and select the required operator, and then enter the required value.

How do you set a breakpoint?

To set a breakpoint in source code: Click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint. The breakpoint appears as a red dot in the left margin.

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

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


2 Answers

I experienced the same problem and found my answer here: Can't set breakpoints in Eclipse

For some reason my file opened with eclipse's plain text editor. I closed my file, right-clicked on it in Package Explorer --> Open With --> Java Editor, and breakpoints work as normal again.

like image 105
Brad E Avatar answered Nov 03 '22 03:11

Brad E


just edit something in the file (add a space, delete that space, and then save the file). Toggle breakpoints will work again.

like image 36
user3523186 Avatar answered Nov 03 '22 04:11

user3523186