Intellij not stopping at breakpoints

已回答

Hi all,

 

I am running a spring boot java application in debug mode in intellij 2022.1.4 community edition. Unfortunately intellij doesn't stop at any breakpoint even if the restful api works properly when tested with Postman. In fact, it does his job... 

May you help me to fix this problem?

Thanks,

Saverio

0

Hello,

Please record a short screencast showing the problem to better understand your case. The files can be uploaded at https://uploads.jetbrains.com (do not forget to specify the UploadID)

Thank you!

0

Dear Egor Klepikov,

 

thanks for answerning me quickly. Where do I find UploadID?... I can upload sono pics but I don't know how useful they may be... anyway, I am going to take some pics

0

UploadId: 2022_07_25_22qCqWKf7LtvWZb7XiBjxn

0

Does it work if you run the app in debug mode using the Spring run/debug configuration?

- Go to Run | Edit Configurations...

- Click + and select Spring Boot.

- Configure it accordingly and run the app in debug mode.

0

I do not have such option. Do I need to install any plug in?

0

Sorry, I didn't notice you're using the community edition. Please try using the Application Run/Debug configuration instead.

0

So, is there any way to debug also with maven run configuration?

0

debug also with maven run configuration?

In this case the Debug option launches the debug for the Maven process which actually runs the goal - it does not launches the JVM which is forked by this process in debug mode. If you really need to use Maven goal for debugging you need to add debug arguments to the process which runs the boot run maven goal, see https://docs.spring.io/spring-boot/docs/2.0.3.RELEASE/maven-plugin/examples/run-debug.html  And then connect to this process from IDE using Remote debug run configuration: https://www.jetbrains.com/help/idea/2020.2/run-debug-configuration-remote-debug.html

1

Thank you very much, It worked! I considere this procedure a little bit tricky with regards to the first one. I've necer had this kind of problem, probably beacause I used to code with intellij premium edition. 

Anyway my problem can be considered solved.

 

Thanks,

Saverio

0

Thank you Egor and Viola for this post, I had similar problem with debugging maven configuration. This helped me!

Regards,

Milan

 

1

请先登录再写评论。