First of all, the most similar question that I found is this Intellij IDEA: Breakpoint not being hit, and is shown greyed out but that is not the exact same case.
I
I was also facing this issue and found that my tomcat configuration was not right.
org.springframework.boot spring-boot-starter-tomcat compile
The scope tag had value as "provided". Changed it to compile and it worked fine.