How to debug spring-boot application with IntelliJ IDEA community Edition?

后端 未结 9 2146
野性不改
野性不改 2021-01-29 23:43

I\'m having difficulties in debugging a Java spring-boot application on IntelliJ IDEA community Edition. The main problem is, that the IDE won\'t stop on a breakpoint, even the

9条回答
  •  孤城傲影
    2021-01-30 00:05

    piphonom's anwser is good , but you need do a little more,which is add the jvmArguments to the maven plugin like this

    
        org.springframework.boot
        spring-boot-maven-plugin
        
            
                -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
            
        
    
    

    for more information about remote debuge for spring boot project, read this

提交回复
热议问题