Table of Contents
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:
Step 2: Put Debug Points
- Open Java file in which we want to debug
- Put debug point, We can also put multiple debug points.
Step 3. Start application in debug mode
In IntelliJ, We can start the application in debug mode using two ways:
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: