Can't set breakpoints in Eclipse
Solution 1
When you double click the gray bar a blue ball appears? If it appears, try to hover you mouse over it and It may say "Line Breakpoint:Blablabla"
Otherwise, try to check if you are using a java editor to open your file. To check this right click the file you want to open, go to the Open With entry and check if Java Editor is selected, if there is not such option this means that you have not the JDT installed and is probably better to download the Java version of eclipse from its official website.
If none of the previous options helped, its probably a bug and you should report it to the eclipse bug system if you would be so kind.
Solution 2
- Right click on file(i.e. example.js)
- go to Open With
- click on Other
- click on Internal Editors radio button
- Select Java Editor from list
Now you can set the break point by right click and selecting one from available methods i.e. toggle breakpoint / line/method etc.
![mcccclean](https://i.stack.imgur.com/gDcS4.png?s=256&g=1)
mcccclean
Updated on June 04, 2022Comments
-
mcccclean about 2 years
Following the Android notepad tutorials using Eclipse 3.4.2 on OSX 10.5.6.
I'm instructed to set a breakpoint in one of the following ways:
Double click on the gray bar to the left of the editor pane.
- this just brings up the "Add Bookmark" window
Select "Toggle breakpoint" in the context menu
- the only options in the context menu are "Go to Annotation..." (which is disabled), "Add Bookmark", "Add Task", "Quick Diff", "Show line numbers", "Folding" and "Preferences"
My guess would be that the editor's in some mode that doesn't allow breakpoints to be set, but I'm only an Eclipse newb. Anyone able to lend any advice here?
-
mcccclean over 15 yearsInstalling JDT (just through software updates) did the trick! Thanks!