Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA: Breakpoint not being hit, and is shown greyed out

Running JDK 1.7 on Mac OS X and suddenly breakpoints on my project are not working, and they are appearing greyed out. They were working earlier today, so not sure what I have done to cause this. I am using Intellij 13.1.3. Why would breakpoints stop working like this?

Grey, non-functioning breakpoint in Intellij 13

like image 223
Mike Hogan Avatar asked Jul 07 '14 14:07

Mike Hogan


People also ask

Why Debug is not working in IntelliJ?

To solve this, simply remove the jar of the debugged module from all modules' dependencies in the Project Structure. If you do not know which modules have the debugged module jar as dependencies, you can use some tools (Eg. Sublime Text, bash, ...) to search for the module name which is stored in Intellij *.

How do I toggle breakpoint in IntelliJ?

To do this, go to Settings/Preferences | Build, Execution, Deployment | Debugger and select Drag to the editor or click with middle mouse button. Clicking a breakpoint will then enable or disable it.

How do I activate breakpoints?

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.

Why is breakpoint invalid IntelliJ?

Invalid breakpoint FollowIntelliJ somehow thinks that the source is out of sync with the class file.


1 Answers

Oh Gee - I just saw the "Mute Breakpoint" button in the debugger window. My mistake: picture below for the next person who might be as inattentive as me:

The mute breakpoint button

like image 181
Mike Hogan Avatar answered Sep 24 '22 02:09

Mike Hogan