I am trying to set breakpoints, nothing happens for couple of classes that I compiled recently with "mvn install". I am able to set breakpoints to classes which were already built by someone else. Please let me know if anyone knows how to solve it.
8 Answers
Had the same issue while using IDEA CE 15: Removing the Python CE plugin 5.0.143.103 fixed the issue... but no Python parsing! :(

- 1,530
- 1
- 15
- 22
-
4You can reinstall Python CE plugin. That fixed the issue for me. – iBiryukov Dec 14 '15 at 16:12
-
Yes, That seem to solve the problem. It was weird though. 15.0.1 or 15 didnt have this problem, 15.0.2 has it. Thanks. – Abhishek Tyagi Dec 15 '15 at 11:25
-
Paranoia, really! I have my little [IDEA Plugin](https://github.com/bmsantos/cola-idea-plugin) and initially thought that it was because of it. After uninstalling it the issue was still there. Then checked in another system that had no plugins and the issue was not present. So I just went down to next most recent plugin that I had installed which happened to be the Python plugin. I was right to suspect that it was a plugin and happy to know that it wasn't mine causing the problem! :) – Bruno Santos Dec 17 '15 at 21:24
-
Does anyone report that issue to JetBrains? – Hubbitus Dec 21 '15 at 09:02
-
Thank you so much for this hint – Jacek L. Dec 22 '15 at 11:58
-
i also cannot get line numbers to stay turned on...any ideas? :) – stantonk Dec 22 '15 at 21:56
-
@stantonk, I have no idea what's preventing your IDEA from keeping line numbers up. But, if I had to guess, it might just be some other plugin you have installed. – Bruno Santos Dec 23 '15 at 16:31
-
@BrunoSantos :( yea. never had an intellij upgrade go so poorly :( – stantonk Dec 23 '15 at 17:41
-
Yep had an issue with this today as well, nuking the python plugin did the trick. – bdew Dec 27 '15 at 15:20
File -> Invalidate Caches and Restart helped solve the problem. Thanks Tomasz Nurkiewicz for the directions

- 951
- 1
- 7
- 11
-
1Thanks @user1796650 . I was facing the same problem and was unable to resolve until I came across your post. I used the Invalidate caches option and it worked magic. – Sachin Verma Jun 20 '13 at 11:42
-
6I am having a similar problem. while debugging, intellij is still running the old code. I tried making a fresh build, invalidate caches - but the problem continues. – Neerav Jun 24 '13 at 20:54
In my case, the issue was caused by PHP Plugin (https://plugins.jetbrains.com/plugin/?id=6610). Even after "Invalidate Caches and Restart", the issue persisted.
Uninstalling that PHP plugin, solved my problem.

- 609
- 7
- 12
-
Thank you for this comment. I too couldn't get this working with the invalidate caches workaround, but your comment prompted me to try disabling my plug-ins and found that the line breakpoints started working again. – Gary Dec 11 '15 at 01:28
-
FYI, in my case it was the Python Community Edition plug-in that was causing the problem. – Gary Dec 11 '15 at 03:19
-
1Thank you.. i was almost going to uninstall the IDE to try a rollback to 14.. Thanks alot.. – Faraj Farook Dec 13 '15 at 18:38
-
Wow, this worked for me too, but how come the PHP plugin affected my Node.js project? Strange... – Kageetai Dec 23 '15 at 13:05
-
This ought to be the weirdest bug I've encountered in a while. Worked for me too. – habitats Jan 03 '16 at 20:58
-
-
-
-
By nothing happens do you mean that breakpoint isn't hit? Take a closer look at breakpoint icon. Especially see the difference between
and
icons. The latter indicates the code you run while debugging doesn't have any meaningful instruction on that line.
One of the reasons for such behaviour is when code you run is not the code you see. It can happen when application server can is still running old JAR or something similar. This seems to be the case since you say that breakpoints work in older code.

- 21,988
- 13
- 81
- 109

- 334,321
- 69
- 703
- 674
-
3By nothing happens I mean I am not even able to set the breakpoint, I don't get that red ball at all. – user1796650 Nov 03 '12 at 15:34
-
@user1796650: this is also a sign of stale code which is out of sync with what you run. How do you run your code? Have you tried refreshing (whatever you can) in IntelliJ after building and installing? – Tomasz Nurkiewicz Nov 03 '12 at 15:41
-
1I am not yet running the code, just setting the breakpoints, which I am unable to do. Couple of points to add, I am able to set breakpoint in the same class(say A.java) in eclipse. In intellij if I add breakpoint in some other class which calls a method of A.java then while debugging it enters the correct method in A.java. I am able to correctly step debug after that. But still not able to set breakpoint in A.java. – user1796650 Nov 03 '12 at 15:47
-
Another thing is if I right click on any method call in A.java and say Go to declaration, even then nothing happens. It just doesn't go to called method – user1796650 Nov 03 '12 at 15:54
-
Thanks @user1796650 . I was facing the same problem and was unable to resolve until I came across your post. I used the Invalidate caches option and it worked magic. – Sachin Verma Jun 20 '13 at 11:40
The solution to fixing breakpoints was adding the wildcard file extension "*.py" to the Python File Types in Python (it must have the wildcard symbol prefix, not just ".py") through taking these steps:
Go to:
IntelliJ IDE > Preferences (CMD+,) > Editor > File Types > Recognized File Types
Under "Recognized File Types" heading:
Scroll down; Select "Python" (associated Registered Patterns will be shown below)
Under "Registered Patterns" heading:
Click "+" icon; Enter "*.py", Click OK (do whatever is necessary to achieve this, including removing/renaming others without the wildcard if necessary)
Add breakpoints by:
Select line(s) of code (not an empty line or comment); Going to: Run > Toggle Line Breakpoint (CMD+F8)
Configure debugging with breakpoints by going to:
Run > Edit Configurations...; Click "+"; Select "Python"; Add a value for the "Name" property; Select location of the ".py" file to debug (in the "Script" property); Click OK
Debug using the breakpoints by going to:
Run > Debug... (Fn+CMD+F9); Wait until it stops at a breakpoint; Inspect variable values shown in the file itself by hovering over variable; Click variables and view the Frame and Variable details in the Debug window by going to: View > Tool Windows > Debug (CMD+5)
Important Note: Initially I tried doing the following but after each one I was still unable to use breakpoints afterward:
Removing and reinstalling the Python plugin:
Entering CMD+,; In the dialog window going to Plugins > Install Jetbrains Plugin.. > "Python" > Install
Updating IntelliJ Ultimate edition to the latest version v2016.3.4
- Going to:
File > Invalidate Caches and Restart

- 4,129
- 2
- 27
- 25
Right click on the gutter (where you normally click to set breakpoint) select "Configure Gutter Icons..." then enable the checkbox at the top that says "Show gutter icons"
That fixed it for me

- 134
- 1
- 6
This is embarrassing but posting here in case this solution will help somebody else: A breakpoint will not show up if you attempt to place it between executable lines of code. The breakpoint must be located on an executable line of code to work. Make sure you click on the gutter next to an executable line or place your cursor on an executable line when you use the shortcut. Once I did this, the breakpoints worked.
"Click the gutter at the executable line of code where you want to set the breakpoint." https://www.jetbrains.com/help/idea/using-breakpoints.html#set-breakpoints

- 590
- 7
- 12