如何:在 Ubuntu 中的 Aptana Studio3 上调试 Rails 3.1.x 应用程序(Ruby 1.9.3) [英] How To:Debugging Rails 3.1.x app(Ruby 1.9.3) on Aptana Studio3 in Ubuntu

查看:30
本文介绍了如何:在 Ubuntu 中的 Aptana Studio3 上调试 Rails 3.1.x 应用程序(Ruby 1.9.3)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Aptana Studio 3 是否支持rails 调试.我之前在Aptana Studio2 上使用嵌入式浏览器和嵌入式服务器调试过Rails 应用程序.

Is rails debugging supported on Aptana Studio 3. I have earlier debugged Rails applications on Aptana Studio2 with the embedded browser and embedded servers.

1)如何在调试模式下启动 rails 应用程序?

1)How to start rails application in Debug Mode?

2)如何在firefox中开启远程调试?

2)How to enable remote debugging in firefox?

我的工作环境如下,一直在用RVM导轨 3.1.x红宝石 1.9.3Ubuntu 10.10

My work environment is as follows and I have been using RVM Rails 3.1.x Ruby 1.9.3 Ubuntu 10.10

我已经安装了调试相关的 gemsruby-debug-base19 (0.11.25)ruby-debug-ide19 (0.4.12)

I have already installed the debug related gems ruby-debug-base19 (0.11.25) ruby-debug-ide19 (0.4.12)

推荐答案

尝试从 Gemfile 中删除(注释掉)ruby-debug-base19.ruby-debug-ide"应该足够了,从评论来看关于不同 IDE - RubyMine 的帖子.

Try removing (commenting out) ruby-debug-base19 from Gemfile. "ruby-debug-ide" should be enough, judging from the comments from a post on different IDE - RubyMine.

对于调试,右键单击项目并选择服务器调试",然后在firefox中手动打开站点(您将在控制台中看到服务器侦听的地址/端口).我没有设法以这种方式设置断点,但我只有一个没有逻辑的测试项目,所以我不确定它在实际项目中的效果如何.

For debugging, right click on the project and select "Server Debug", then open the site manually in firefox (you will see the address/port the server listening to in the console). I did not manage to set a breakpoint this way, but I only had a test project with no logic in it, so I am not sure how well it works on a real project.

不确定您关于使用 Firefox 进行远程调试"的问题.

Not sure about your question on "remote debugging with Firefox".

这篇关于如何:在 Ubuntu 中的 Aptana Studio3 上调试 Rails 3.1.x 应用程序(Ruby 1.9.3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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