如何在eclipse aptana插件中调试ruby on rails [英] How to debug ruby on rails in eclipse aptana plugin

查看:27
本文介绍了如何在eclipse aptana插件中调试ruby on rails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找出这个 eclipse aptana 插件(来自 Visual Studio 背景).当我尝试按如下方式调试我的项目时:

I'm trying to figure out this eclipse aptana plugin (coming from a visual studio background). When I try to debug my project as follows:

它抛出这个错误:

无法找到rdebug-ide"二进制脚本.可能需要安装ruby-debug-ide" gem,或者可能需要将您的 gem 可执行目录添加到您的 PATH(通过gem 环境"检查位置).

这是gem环境:

RubyGems Environment:
  - RUBYGEMS VERSION: 1.5.2
  - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [i386-mingw32]
  - INSTALLATION DIRECTORY: C:/Ruby192/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: C:/Ruby192/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/Ruby192/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - C:/Ruby192/lib/ruby/gems/1.9.1
     - C:/Users/Lol/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

服务器可以启动,我可以访问 localhost:3000 并加载.但我不明白这个错误或如何开始调试.知道出了什么问题吗?

The server can be started, I can go to localhost:3000 and it loads. But I dont understand this error or how to get debugging started. Any idea what is wrong?

附注.来自 asp.net mvc 背景,我可以右键单击控制器文件夹并添加控制器.然后右键单击一个动作并为其生成一个视图.我不能在 ruby​​ on rails 开发中这样做吗?

PS. Coming from an asp.net mvc background, I can right click controllers folder and add controller. Then right click an action and generate a view for it. Can I not do this in ruby on rails development?

推荐答案

从命令行发出以下命令:

Issue the following command from the command line:

gem 安装 ruby​​-debug-ide

gem install ruby-debug-ide

错误信息是说你没有安装这个 gem.似乎 Aptana 在激活某些功能之前不会检查安装了哪些 gem.

The error message is saying that you don't have this gem installed. It seems as though Aptana does not check to see what gems are installed before activating certain features.

如果您不知道 gem 是什么,请将其视为安装在系统范围内的插件.

In case you don't know what a gem is, think of it as a plugin that is installed system-wide.

这篇关于如何在eclipse aptana插件中调试ruby on rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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