我希望有人能帮助我。我在Windows 7 32位计算机上安装了RubyMine 2.0.2。自从一个星期前(我认为它一定是我更新了一些宝石后),我似乎无法调试形式的IDE。我正在尝试调试我之前可以使用的耙子任务。运行rake任务通常是完美的,只是调试doesnt。它不仅限于耙,我不能调试任何ruby文件。我试过安装早期版本的debug-ide和debug-base,但没有成功。我已经在不同的计算机上使用红宝石1.8.7和1.8.6进行了试用,但没有任何结果。试图搜索网络提供了一些我已经尝试过的信息,但也没有成功。我绝望地得到这个工作。下面是完整的错误,我的当前设置:Ruby Debug IDE错误:ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:`debug_load'
错误:
C:\InstantRails\ruby\bin\ruby.exe -e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift) C:\InstantRails\ruby\bin/rdebug-ide --port 57167 -- C:/InstantRails/rails_apps/paperserve/lib/tasks/poll_snmp.rake
Fast Debugger (ruby-debug-ide 0.4.9) listens on :57167
C:/InstantRails/rails_apps/paperserve/lib/tasks/poll_snmp.rake:5
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug ide.rb:109:in `debug_load'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug ide.rb:109:in `debug_program'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/bin/rdebug-ide:87
C:\InstantRails\ruby\bin/rdebug-ide:19:in `load'
C:\InstantRails\ruby\bin/rdebug-ide:19
-e:1:in `load'
-e:1
Uncaught exception: undefined method `namespace' for main:Object
Process finished with exit code 1
代码段(它无法在命名空间的开始。如果我删除此,它失败的下一行,等等,等等。)
#This script should run every 15 minutes
require 'snmp'
require 'yaml'
namespace :cdeweb do
RubyGems的环境:
- RubyGems的版本:1.3.7版本RUBY:
- 1.8.6(2007-09-24 PATCHLEVEL 111)[I386-mswin32]安装
- 目录:
- C:/InstantRails/ruby/lib/ruby/gems/1.8
- Ruby可执行文件:
- C:/InstantRails/ruby/bin/ruby.exe
- 可执行文件目录:
- C:/ InstantRails的/红宝石/ bin中的rubygems
PLATFORMS:
- 红宝石
- x86的mswin32-60
GEM PATHS:
- C:/InstantRails/ruby/lib/ruby/gems/1.8
- C:/用户/ Paul.LPFSYSTEMS/.gem /红宝石/ 1。8
GEM CONFIGURATION:
- :update_sources =>真
- :冗长=>真
- :基准=>假
- :回溯=>假
- : bulk_threshold => 1000
远程源:
* LOCAL GEMS *
- 的ActionMailer(2.3.5,2.0.2)
- ActionPack的(2.3。 5,2.0.2)
- 的activerecord(2.3.5,2.0.2)
- 的ActiveResource(2.3.5,2.0.2)
- 的ActiveSupport(2.3.5,2.0.2)
- Capistrano的(2.5.18,2.1.0)
- cgi_multipart_eof_fix(2.5.0)
- cmdparse(2.0.2)columnize(0.3.1)
- fxri(0.3.7,0.3.6)fxruby(1.6.12 mswin32)
- gem_plugin(0.2 .3)
- highline(1.5.2,1.4.0)
- 角度来说,Hpricot(0.8.2 x86的mswin32,0.6 mswin32)
- inaction_mailer(0.6)
- JSON(1.4.2 x86的mswin32)
- json_pure(1.4.2)
- linecache(0.43 mswin32)
- log4r的(1.1.7,1.0.5)
- 杂种(1.1.5 x86的mswin32-60,1.1.2 mswin32)
- MySQL的(2.8.1 x86的mswin32,2.7.3 mswin32)
- needle(1.3.0)
- 净SCP(1.0.2)
- 净-SFTP(2.0.4,1.1.0)
- 净SSH(2.0.22,1.1.2)
- 净SSH-网关(1.0 0.1)
- 机架(1.0.1)
- 轨(2.3.5,2.0.2)
- 耙(0.8.7,0.8.1,0.8.0,0.7.3)
- 红宝石-debug-base(0.10.3 mswin32)
- ruby-debug-ide(0.4。9)
- 红宝石净LDAP(0.0.4)
- 的rubygems更新(1.3.7,1.3.6,1.0.1)
- SNMP(1.0.2)
- 源(0.0。 1)
- 的sqlite3-红宝石(1.2.5 x86的mswin32,1.2.1 mswin32)
- Win32的API(1.4.6 x86的mswin32-60,1.0.4 mswin32)
- Win32的剪贴板(0.5 0.2,0.4.3)
- win32-dir(0.3.6,0.3.2)
- Win32的事件日志(0.5.2,0.4.6)
- Win32的文件(0.6.3,0.5.4)
- Win32的文件-STAT(1.3.4,1.2.7)
- Win32的过程(0.6.2,0.5.3)
- Win32的SAPI(0.1.5,0.1.4)
- Win32的声音(0.4.2,0.4.1)
- 窗口-API(0.4.0, 0.2.0)
我发现我的答案@ http://stackoverflow.com/questions/4455518/netbeans-6-9-1-rails-3-ruby-1-9-2p0-debugging 第二个答案加“”。到文件 – 2011-12-09 22:03:13