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.
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.
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.
Select all the methods using ctrl . Right click and select Toggle Method Breakpoint .
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.
just edit something in the file (add a space, delete that space, and then save the file). Toggle breakpoints will work again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With