有没有办法在 eclipse 中调试在 Tomcat 服务器上运行的 JRuby on Rails 应用程序?
我有一个在 Tomcat 7 服务器上运行的 JRuby on Rails 应用程序。我使用 Eclipse 作为 IDE。有没有办法在 Ruby 代码中触发断点?
如果没有,还有其他方法来调试应用程序吗? (我宁愿不使用打印到控制台的消息)。我想如果它不能与 Eclpse 一起工作,那么它也不能与 IntelliJ 一起工作。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们当前正在开发的 JRuby on Rails 应用程序最终将部署到 Tomcat 服务器。然而,在开发过程中,我们使用开箱即用的 WEBrick 服务器来运行和调试我们的应用程序。虽然,我们使用 IntelliJ(带有 Ruby 插件),所以我不确定 Eclipse 中是否有对 Rails 开发的类似支持。您始终可以切换到 IntelliJ...
注意: 通过这种方法,您仍然希望频繁部署到 Tomcat,可能是在临时环境中,或者作为持续部署策略的一部分。这将确保应用程序在部署到 Tomcat 时仍按预期运行,并且可以及早发现任何细微差别。
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.