Breakpoints aren't hit/working in maven project.
Answered
Breakpoints stopped working in my maven project. It doesn't matter where I set them but the program path runs through to completion.
Following are the releveant system specs:
IntelliJ IDEA 2018.2.3 (Ultimate Edition)
Build #IU-182.4323.46, built on September 3, 2018
JRE: 1.8.0_152-release-1248-b8 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6
System installed Java:
Java 10.0.1 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
Please sign in to leave a comment.
Oi oi oi oi oi oi OI......
I solved it by removing the .idea and .iml directory and file. I noticed that, when I copied the code to a new project (created 2 updates prior), the debugger could trap on the exact some line of code, so that got me thinking that perhaps things have changed with IJ and thus I "re-imported" the project.
Thank you for letting us know what was the solution.
Also, I see you are using a pretty old version of IntelliJ.
You should consider updating to the latest release: https://www.jetbrains.com/idea/download, as a lot of bugfixes and feature requests have been implemented since the version you are currently using.