idea下的spring boot remote debug 启动办法

最近做个spring  boot的项目,因为涉及到dubbo,采用的是  
spring-boot:run 启动的工程

下面的图那个样子


需要在pom.xml使用这个plugins


        
            
            
            
                org.springframework.boot
                spring-boot-maven-plugin
                
                
                    
                        -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
                    
                    true
                
                
                    
                        
                            repackage
                        
                    
                
            
        
启动后出现:
Listening for transport dt_socket at address: 5005
就一直不动了。


然后配置idea的debug

idea下的spring boot remote debug 启动办法_第1张图片

除了上面的名字改成debug外 什么也不用改

然后再点击这个小虫子。

好了就可以断点了。




你可能感兴趣的:(SpringBoot)