开发者

Eclipse Tomcat debug on start

开发者 https://www.devze.com 2023-03-28 12:55 出处:网络
I have web application - use Spring + Tomcat. I need debug method that starts on Tomcat start. There is the problem - debugger is blocked until Tomcat not started, but I can\'t allow finish start Tomc

I have web application - use Spring + Tomcat. I need debug method that starts on Tomcat start. There is the problem - debugger is blocked until Tomcat not started, but I can't allow finish start Tomcat - because this method invoked only on start. Is t开发者_Python百科here a way to resolve? Thanks.


Start tomcat using this command catalina jpda start and then connect via remote debugger from eclipse, after setting breakpoints where ever you need them.


Have you tried SpringSource Tool Suite (STS) which is an eclipse based IDE ? It provides Spring Insight which is of great help when working on Tomcat with Spring

0

精彩评论

暂无评论...
验证码 换一张
取 消