如何在eclipse aptana插件上的rails上调试ruby [英] How to debug ruby on rails in eclipse aptana plugin
问题描述
它会抛出此错误:
无法找到' rdebug-ide'二进制脚本。可能需要安装ruby-debug-idegem,或者可能需要将您的gem可执行文件目录添加到您的PATH(通过'gem environment'检查位置)。
这是 gem环境
:
RubyGems环境:
- RUBYGEMS VERSION:1.5.2
- RUBY VERSION:1.9.2(2011-02-18 patchlevel 180)[i386-mingw32]
- 安装目录: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配置:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
服务器可以启动,我可以去localhost:3000加载。但我不明白这个错误或者如何开始调试。任何想法有什么问题?
PS。来自asp.net mvc背景,我可以右键单击控制器文件夹并添加控制器。然后右键单击一个操作并生成一个视图。
从命令行发出以下命令:
gem install ruby-debug-ide
错误消息是说您没有安装此gem。在启动某些功能之前,似乎Aptana并未检查是否安装了什么宝石。
如果您不知道是什么宝石,请将其视为安装在系统范围内的插件。
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:
It throws this error:
Unable to find 'rdebug-ide' binary script. May need to install 'ruby-debug-ide' gem, or may need to add your gem executable directory to your PATH (check location via 'gem environment').
This is gem environment
:
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/
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?
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 install ruby-debug-ide
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.
In case you don't know what a gem is, think of it as a plugin that is installed system-wide.
这篇关于如何在eclipse aptana插件上的rails上调试ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!