IntelliJ IDEA 2017.1 does not stop on breakpoints

14,380

Solution 1

Well... for some reason, creating a Gradle run/debug config would make it connect to the wrong port (something random over 50000) while the application was running on 8080.

Anyway, long story short, creating an Application run/debug config solved the issue and everything works fine now.

Solution 2

Confirm. Problem was that I try to debug using maven run configuration. Switching to Application configuration type helps. I've spend half of a day on it (

Solution 3

I have faced this problem.

  1. Invalidate caches and restart
  2. I was using Spring Boot rest api project in intellij so all debug breakponts were getting passed/ignored. But the programm started debug process whenI hit Api using postman
Share:
14,380
CatalinM
Author by

CatalinM

Updated on June 05, 2022

Comments

  • CatalinM
    CatalinM about 2 years

    I have an old Gradle project that I've opened recently using the new IDEA 2017 and I have just noticed it will not stop on breakpoints anymore (these are active, but not "validated" - no checkmark on them.

    The code is run locally (a gradle run/debug config without any options) with bootRun as the gradle task.

    I have tried an Invalidate Caches/Restart without any success. I have also tried re-importing the project in IDEA.

    A while back I had the same issue after upgrading to Spring 1.4.5 (if I remember correctly). I couldn't figure out why, so I downgraded back to 1.4.2 and everything worked fine. However, this time I'm running Spring 1.2.4 and I cannot upgrade to a newer version without changing some code (and I don't want that yet)

  • alltej
    alltej over 6 years
    having same issue. can you expand on this? what do you mean by switching to application configuration? thanks
  • Andriy Yarish
    Andriy Yarish over 6 years
    Run -> Edit Configuration - Plus -> Application ->Then point to main method
  • Dark Star1
    Dark Star1 almost 5 years
    Saved me after 2 hours of head scratching
  • aero
    aero over 4 years
    My friend, thank you for sharing, but how do you expect others make full use of your answer if you don't share steps, or more clarification: how exactly do I switch to app mode?!
  • Jagan
    Jagan over 4 years
    Hi, I am also facing the same issue. But in my case, the project is an Spring-based project. So how to configure the Application config?
  • Dave
    Dave about 3 years
    I wish I had found this before I wasted a load of time of trying to maven and spring profiles