IntelliJ IDEA 2017.1 does not stop at breakpoints

I have an old Gradle project, which I recently opened with the new IDEA 2017, and I just noticed that it no longer stops at breakpoints (they are active, but not โ€œcheckedโ€ - there is no checkmark on them.

The code runs locally (a Gradle run / debug config without any parameters) with bootRun as a Gradle task.

I tried to do Invalidate Caches / Restart without any success. I also tried to reimport the project into IDEA.

While I had the same problem after upgrading to Spring 1.4.5 (if I remember correctly). I could not understand why, so I dropped to 1.4.2, and everything worked fine. However, this time I run Spring 1.2.4, and I canโ€™t upgrade to a newer version without changing the code (and I donโ€™t want it yet)

+5
source share
2 answers

Well ... for some reason, creating a Gradle run / debug configuration will result in a connection to the wrong port (something random over 50,000) while the application was running on 8080.

In any case, the long story, creating the launch / debug configuration of the application, solved the problem, and now everything works fine.

0
source

Confirm The problem was that I was trying to debug using the maven run configuration. The transition to the type of application configuration is applied. I spent half the day on this (

+1
source

Source: https://habr.com/ru/post/1266521/


All Articles