如何在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

查看:74
本文介绍了如何在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 Rails 3.1.x Ruby 1.9.3 Ubuntu 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

我已经安装了与调试相关的gem ruby-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天全站免登陆