1. Overview

In this article, We will see how to debug spring boot application in IntelliJ step by step. We have seen so many developers who are not practicing to debug the application, Instead of start debugging they are writing system.out.println and trace application. It’s good practice to debug code using IDE which will make development easy and fast.

2. Step to debug Spring boot application in IntelliJ

Step 1: Open or Create Application

We are assuming that you have created a spring boot application:

spring boot application debug in IntelliJ

Step 2: Put Debug Points

Open Java file in which we want to debug

Put debug point, We can also put multiple debug points.

Spring boot file put debug point

Step 3. Start application in debug mode

In IntelliJ, We can start the application in debug mode using two ways:

spring boot application debug in IntelliJ – Run application

Step 4: Let’s debug code

To debug code, Let’s fire http://localhost:8282/demo in the browser because we have put debug point in demo controller.

When control comes to debug point execution of code will stop and wait for user input:

JavaDeveloperZone is the group of innovative software developers. We are expert in Java JEE and BigData application development. Our contributions will help Java developers and make development journey easy. Feel free to ask any question and suggestion. Always have space for improvement !
We are also providing software application development as service. Contact us