在 Aptana/Eclipse 中调试 Rails 应用程序
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用 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.