有没有办法调试在Eclipse中运行的Tomcat服务器上的JRuby on Rails应用程序? [英] Is there a way to debug a JRuby on Rails application running on a Tomcat server in eclipse?

查看:192
本文介绍了有没有办法调试在Eclipse中运行的Tomcat服务器上的JRuby on Rails应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Tomcat 7服务器上运行的JRuby on Rails应用程序。我使用Eclipse作为IDE。有没有办法在Ruby代码中触发断点?



如果没有,是否有其他方法来调试应用程序? (而不是使用消息打印到控制台)。我想如果它不适用于Eclpse,它将不会与IntelliJ一起使用。

解决方案

JRuby on Rails我们正在开发的应用程序将最终部署到Tomcat服务器。然而,在开发过程中,我们使用开箱即用的WEBrick服务器来运行和调试我们的应用程序。虽然,我们使用IntelliJ(与Ruby插件),所以我不知道是否有类似的支持在Rails开发在Eclipse。您可以随时切换到IntelliJ ...



注意:使用此方法,您仍然希望经常部署到Tomcat,也许在分段环境,或作为持续部署策略的一部分。这将确保应用程序仍然按照预期的方式部署到Tomcat,并且可以及早捕获任何细微差别。


I have a JRuby on Rails application running on Tomcat 7 server. I use Eclipse as IDE. Is there a way to trigger breakpoints in the Ruby code?

If not, is there any other way to debug the application? (and I rather not use messages be printed to the console). I suppose that if it doesn't work with Eclpse, it won't work with IntelliJ either.

解决方案

The JRuby on Rails application that we are currently developing will ultimately be deployed to a Tomcat server. During development, however, we use the out-of-the-box WEBrick server to run and debug our application. Although, we use IntelliJ (with the Ruby plugin) so I'm not sure if there is similar support for Rails development in Eclipse. You could always switch to IntelliJ...

Note: With this approach you would still want to frequently deploy to Tomcat, perhaps within a staging environment, or as part of a continuous deployment strategy. This will ensure the application still behaves as expected when deployed to Tomcat and that any nuances can be caught early.

这篇关于有没有办法调试在Eclipse中运行的Tomcat服务器上的JRuby on Rails应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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