DEV Community

Cover image for Debugging SpringBoot Application In IntelliJ Idea CE
Davey
Davey

Posted on • Edited on • Originally published at developinjava.com

3 1

Debugging SpringBoot Application In IntelliJ Idea CE

When debugging a SpringBoot application in IntelliJ Idea Community Edition, additional steps need to be taken.

If you have defined your run configuration as spring-boot:run, you will find that the application runs, but does not stop at breakpoints as expected.

An easy way to resolve this is to set the spring-boot.run.fork property to false.

This can be set wither within the pom.xml file, or within the run configuration. To set the run configuration, set the "Command line:" within the Run Configuration to be:

spring-boot:run -Dspring-boot.run.fork=false
Enter fullscreen mode Exit fullscreen mode

The default value of this property is true, which is usually the best setting, but not when debugging from IntelliJ Idea CE. If the application is forked, then the relevant JVM properties are not passed on to the forked process and debugging does not work as expected.

Changing the value of this property all the time can cause problems with Spring Boot DevTools, so its only recommended to set at runtime and not in the pom.xml file where it will be used every time the application is started.

Credits

Photo by Zan on Unsplash

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more