ruby-debug

Running ruby debug in rspec?

て烟熏妆下的殇ゞ 提交于 2019-11-27 11:02:28
问题 I'm trying to get Ruby debugger running in one of my specs: describe User do it "should be valid" do debugger User.new.should be_valid end end When I run rspec though, I get: debugger statement ignored, use -d or --debug option to enable debugging I've tried the following: 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" spec/models/ bundle exec

Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 still crashes with “Symbol not found: _ruby_threadptr_data_type” [duplicate]

。_饼干妹妹 提交于 2019-11-27 05:07:51
Possible Duplicate: ruby-debug with Ruby 1.9.3? I had heard rumors that ruby 1.9.3p125 has a solution for the ruby-debug19 problem, so per instructions on the RVM site, I reinstalled 1.9.3: $ rvm reinstall 1.9.3 --patch debug --force-autoconf $ ruby -v ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.2.0] Then: gem install ruby-debug19 Added this entry to my Gemfile: gem 'ruby-debug19' Then: $ rails server -u => Booting WEBrick => Rails 3.1.3 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

ruby_threadptr_data_type error

∥☆過路亽.° 提交于 2019-11-27 04:40:59
问题 I'm starting up a new rails app with the latest version of rails (3.1.3). Rails crashes when I try to start up the server. First I fixed this bug, and now I'm getting this one ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_threadptr_data_type There's a discussion about this going on here, but I can't make enough sense of it to get things to work. UPDATE I updated the version of ruby-debug gem 'ruby-debug-base19x', '~> 0.11.30.pre4' and have now moved on to this error

Ruby-debug not working

故事扮演 提交于 2019-11-26 23:25:07
问题 I can't get the server to start in debugging mode: even though I have all of the correct gems installed, the server refuses to start. $ gem install ruby-debug ERROR: Error installing ruby-debug: rbx-require-relative requires Ruby version ~> 1.8.7. which doesn't work, other posts say to use ruby-debug19: David@DAVID-PC /c/triton6 $ gem install ruby-debug19 Successfully installed ruby-debug19-0.11.6 1 gem installed Installing ri documentation for ruby-debug19-0.11.6... Installing RDoc

Rails with ruby-debugger throw 'Symbol not found: _ruby_current_thread (LoadError)'

风格不统一 提交于 2019-11-26 22:34:37
问题 I have standard ruby-head and Rails 3.1rc4. I installed ruby-debug with following instructions from http://dirk.net/2010/04/17/ruby-debug-with-ruby-19x-and-rails-3-on-rvm/ But when i run rails s --debugger it will throw this strange error /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

ruby-debug with Ruby 1.9.3?

谁说胖子不能爱 提交于 2019-11-26 21:50:28
I just updated to Ruby 1.9.3p0 and Rails 3.1.1. Now when I try to launch the server, it complains that I should install ruby-debug , even though it's already installed. % 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 In my Gemfile I have # see: http://stackoverflow.com/questions/1083451/debugging-in-ruby-1-9 gem 'ruby-debug-base19',

ruby-debug with Ruby 1.9.3?

一曲冷凌霜 提交于 2019-11-26 08:03:52
问题 I just updated to Ruby 1.9.3p0 and Rails 3.1.1. Now when I try to launch the server, it complains that I should install ruby-debug , even though it\'s already installed. % 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 In my