Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging standalone Spring Boot application (Intellij IDEA)

I am using Intellij IDEA 14.1 and I am trying to debug the most basic standalone Spring Boot 1.2.5 application. Would someone please tell me how to do that?

I've read http://docs.spring.io/autorepo/docs/spring-boot/1.2.5.RELEASE/maven-plugin/usage.html but have not been successful in making it work. The easiest would be to disable the forking that Spring Boot is using when debugging, but again, I was not successful in doing so. (-Dfork=false?)

Any help is much appreciated!

like image 848
Robert Varga Avatar asked Dec 25 '22 14:12

Robert Varga


1 Answers

I am confused.

You have a main method that starts your standalone Spring Boot application, right? Well, right click on that and choose Debug 'YourApp'

like image 188
Stephane Nicoll Avatar answered Jan 17 '23 15:01

Stephane Nicoll