在 Aptana/Eclipse 中调试 Rails 应用程序

发布于 2024-12-18 13:49:59 字数 318 浏览 2 评论 0原文

我正在使用 Eclipse 的 Aptana 3 插件进行 Ruby on Rails 开发。我正在尝试使用 ruby​​-debug-ide19 gem 在 Eclipse 中进行调试。我通过转到“运行”->“调试方式”->“Ruby 应用程序”来启动调试会话。

这适用于最简单的场景。但是,如果我尝试访问我的任何模型、lib 中的类等,它将无法工作,因为在调试之前未加载我的开发环境。如何在进入调试模式之前加载我的开发环境?就像我在命令行上执行 rails console 时发生的情况一样。

如果我能做到这一点,看起来会非常好。任何帮助表示赞赏!

I'm using the Aptana 3 plugin for Eclipse to do Ruby on Rails development. I'm trying to use the ruby-debug-ide19 gem to do debugging within Eclipse. I start a debug session by going to Run->Debug As->Ruby Application.

This works for the simplest of scenarios. However, if I try accessing any of my models, classes in lib, etc, it won't work as my development environment is not being loaded prior to debugging. How can I get my development environment to load before entering debug mode? Just like what happens when I do a rails console on the command line.

If I can get this working, it looks like it'll be really nice. Any help is appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

病毒体 2024-12-25 13:49:59

我使用 Apatana 进行 Rails 开发几年,但最终从 JetBrains 转向 Rubymine。 Rubymine 提高了生产力,特别是在调试方面,很快就弥补了 49 美元的许可证费用。

I used Apatana for Rails development for a couple of years but ultimately switched to Rubymine from JetBrains. Rubymine's improved productivity, especially for debugging, made up for the $49 license in no time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文