Tag: ruby debug

Ruby on Rails:debuggingrake任务

当我编写debugger它不会启动: NoMethodError: undefined method `run_init_script' for Debugger:Module from /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby-debug-base.rb:239:in `debugger' from (irb):4 如果我运行rake my:task –debugger ,它会立即返回到控制台。 如何debuggingrake任务?

Rails与rubydebugging器抛出'符号未find:_ruby_current_thread(LoadError)'

我有标准的ruby头和Rails 3.1rc4。 我使用http://dirk.net/2010/04/17/ruby-debug-with-ruby-19x-and-rails-3-on-rvm/安装了ruby-debug。 但是,当我运行rails s –debugger它会抛出这个奇怪的错误 /Users/schovi/.rvm/gems/ruby-head/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:237:in `require': dlopen(/Users/schovi/.rvm/gems/ruby-head/gems/linecache19-0.5.12/lib/trace_nums19.bundle, 9): Symbol not found: _ruby_current_thread (LoadError) Referenced from: /Users/schovi/.rvm/gems/ruby-head/gems/linecache19-0.5.12/lib/trace_nums19.bundle Expected in: flat namespace in /Users/schovi/.rvm/gems/ruby-head/gems/linecache19-0.5.12/lib/trace_nums19.bundle – /Users/schovi/.rvm/gems/ruby-head/gems/linecache19-0.5.12/lib/trace_nums19.bundle from /Users/schovi/.rvm/gems/ruby-head/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:237:in `block in require' from /Users/schovi/.rvm/gems/ruby-head/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:223:in `block in load_dependency' 任何想法? 谢谢,大卫

在rspec中运行rubydebugging?

我试图让Rubydebugging器运行在我的规范之一: describe User do it "should be valid" do debugger User.new.should be_valid end end 当我运行rspec时,我得到: debugger statement ignored, use -d or –debug option to enable debugging 我已经尝试了以下内容: rake spec –debug rake spec –debug –trace rake spec:models –debug bundle exec rspec –debug bundle exec rspec –debug spec/models/ bundle exec rspec –d spec/models/ bundle exec "rspec –debug" […]

在OSX狮子上安装autoreconf?

我试图重新安装ruby1.9.3的补丁,将允许我使用ruby-debug 。 当按照指示和运行 rvm reinstall 1.9.3 –patch debug –force-autoconf 它贯穿并且在应用贴片吐出之后: rvm需要autoreconf来安装select的ruby解释器,但是在PATH中找不到autoreconf。 不幸的是,如何在OSX Lion上安装autoreconf(或者有关它的更多信息)似乎是死路一条。

ruby的debugging与Ruby 1.9.3?

我刚刚更新到Ruby 1.9.3p0和Rails 3.1.1。 现在,当我尝试启动服务器,它抱怨说,我应该安装ruby-debug ,即使它已经安装。 % rails server –environment=development –debug => Booting WEBrick => Rails 3.1.0 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug' Exiting 在我的Gemfile中有 # see: […]