如何使用 Eclipse 调试 Spring Boot 应用程序? [英] How to debug Spring Boot application with Eclipse?

查看:40
本文介绍了如何使用 Eclipse 调试 Spring Boot 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Spring Boot webapp 运行良好,我想通过 Eclipse 调试它.

My Spring Boot webapp is running just fine, and I'd like to debug it through Eclipse.

那么在启动我的远程 Java 应用程序调试器时,我应该监听哪个端口?我的 web 应用程序上是否有设置我必须设置以启用调试?

So when launching my Remote Java Application debugger, which port should I listen to? And is there a setting on my webapp I have to set to enable debugging?

推荐答案

你为什么不直接右击 main() 方法并选择 Debug As... Java应用程序"?

Why don't you just right click on the main() method and choose "Debug As... Java Application"?

这篇关于如何使用 Eclipse 调试 Spring Boot 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆