1、第一步启动idea,进入主界面导航栏处选择打开run/debug configurations。
2、第二步选择spring boot 下要进行debug调试的服务。在vm options:的填写框中写入-xms512m -xmx512m -xmn164m -xx:maxpermsize=250m -xx:reservedcodecachesize=64m -dserver.port=8080 -ea。
3、第三步然后debug运行微服务主程序入后即@springbootapplication注释的类。
4、第四步打断点,进入debug模式。 step over (f8):步过。 step into (f7):步入。