使用ruby1.9和netbeans调试rspec

时间:2010-07-18 11:45:54

标签: ruby-on-rails ruby debugging rspec

如何使用IDE调试rspec规范?具体来说我使用以下内容:  * Ubuntu 10.04  *使用rvm构建的ruby 1.9.2-dev  * rails3-beta4  * NetBeans 6.9

我已安装 ruby​​-debug19 ruby​​-debug-ide91 gems,但NetBeans无法识别我的快速调试器。除了尝试在NetBeans中调试规范外,还会出现以下错误:

ruby 1.9.2 debugger listens on port 35461
--- !ruby/exception:NoMethodError 
message: undefined method `critical=' for Thread:Class
--- 
- /home/mping/devel/netbeans-6.9/ruby/ruby/debug-commons-0.9.5/classic-debug.rb:269:in `trace_off'
- /home/mping/devel/netbeans-6.9/ruby/ruby/debug-commons-0.9.5/classic-debug.rb:279:in `block in read_command_loop'
- /home/mping/devel/netbeans-6.9/ruby/ruby/debug-commons-0.9.5/classic-debug.rb:275:in `loop'
- /home/mping/devel/netbeans-6.9/ruby/ruby/debug-commons-0.9.5/classic-debug.rb:275:in `read_command_loop'
- /home/mping/devel/netbeans-6.9/ruby/ruby/debug-commons-0.9.5/classic-debug.rb:330:in `block in <class:DC_DEBUGGER__>'

由于

1 个答案:

答案 0 :(得分:0)

这里的错误完全相同,但是用于调试wirh

  • Ubuntu 10.10 32Bit
  • Aptana Studio 2
  • Ruby 1.9.2p0 via rvm 1.0.14
  • Rails 3.0.0
  • ruby​​-debug-base19 0.11.24
  • ruby​​-debug-ide19 0.4.12