ruby-debug

Aptana 3 ruby debugger - Exception in DebugThread loop: undefined method `is_binary_data?'

十年热恋 提交于 2019-11-29 01:15:10
问题 I'm trying to debug simple ruby file in Aptana 3. class HelloWorld def initialize() end def greet() puts "hello world" end end h=HelloWorld.new h.greet breakpoint is set to h.greet after I started debug, debugger starts, but when it tries to initialize ruby class, debugger disconnect with message Fast Debugger (ruby-debug-ide 0.4.9) listens on :54749 Exception in DebugThread loop: undefined method `is_binary_data?' for "#<HelloWorld:0x85915fc>":String when I set breakpoint to h=HelloWorld.new

Cannot use ruby-debug19 with 1.9.3-p0? [duplicate]

一曲冷凌霜 提交于 2019-11-28 23:11:07
Possible Duplicate: Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 still crashes with “Symbol not found: _ruby_threadptr_data_type” I run this: gem install ruby-debug19 And in my cucumber env.rb file, I have this: require 'ruby-debug' When I try to run, though, I get this exception: /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_current_thread - /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so (LoadError) What do I need to do to get ruby-debug to work with 1.9.3-p0? Tom De Leu UPDATE: ruby

Ruby on Rails: debugging rake tasks

有些话、适合烂在心里 提交于 2019-11-28 19:07:08
When I write debugger it does not start: 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 If I run rake my:task --debugger ,it returns me to console immediately. How is it possible to debug rake tasks? Andrey Kouznetsov's answer didn't work for me using Ruby 1.9.3. The ruby-debug gem doesn't seem to support Ruby 1.9. I had to use the debugger gem: https://github.com/cldwalker/debugger . Add gem 'debugger' to my Gemfile's development group. Run bundle . Add

how do I install ruby-debug in ruby 1.9.3 / Rails 3.2.1 [duplicate]

喜欢而已 提交于 2019-11-28 18:54:05
Possible Duplicate: Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 still crashes with “Symbol not found: _ruby_threadptr_data_type” I'm done with printing to the console -- I want to move up to the 20th century and start using a debugger!! But how do I install ruby-debug? The native compilation of ruby-debug.c fails when I try to install the ruby-debug19 gem. I've looked over other SO postings and haven't found the answer yet... I am using Ruby 1.9.3-p0 I am using Rails 3.2 (with Gemfile, of course) I am NOT using RVM -- instead, I have a fully sandboxed directory containing all executables, gems,

Running ruby debug in rspec?

夙愿已清 提交于 2019-11-28 18:04:55
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 rspec --debugger spec/models/ bundle exec --debugger rspec spec/models/ bundle --debugger exec rspec

Install autoreconf on OS X v10.7 (Lion)?

北城余情 提交于 2019-11-28 15:36:22
I'm attempting to re-install Ruby 1.9.3 with a patch that will allow me to use ruby-debug . When following the instructions and running rvm reinstall 1.9.3 --patch debug --force-autoconf It runs through and after applying the patch spits out: rvm requires autoreconf to install the selected ruby interpreter however autoreconf was not found in the PATH. Unfortunately, googling around for how to install autoreconf on OS X v10.7 (Lion) (or much information about it at all) seems to be a dead end. foz If you are using Homebrew , try brew install automake Which should also install autoconf and allow

Ruby-debug not working

佐手、 提交于 2019-11-28 00:25:37
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 documentation for ruby-debug19-0.11.6... David@DAVID-PC /c/triton6 $ rails server --debug => Booting WEBrick =>

Cannot install ruby-debug gem on Windows

女生的网名这么多〃 提交于 2019-11-27 22:19:25
问题 I'm having trouble installing the Ruby-Debug Gem on windows. What does this error mean? How can I fix this? Thanks C:\Users\Steve>gem install ruby-debug Building native extensions. This could take a while... ERROR: Error installing ruby-debug: ERROR: Failed to build gem native extension. C:/Ruby19/bin/ruby.exe extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file

ruby-debug Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers

吃可爱长大的小学妹 提交于 2019-11-27 15:26:33
My Rails is 3.2.1.4 , Ruby is 1.9.3p448 . I got an error when I install ruby-debug : Building native extensions. This could take a while... ERROR: Error installing ruby-debug: ERROR: Failed to build gem native extension. /home/hxh/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without

Cannot use ruby-debug19 with 1.9.3-p0? [duplicate]

痴心易碎 提交于 2019-11-27 14:45:34
问题 Possible Duplicate: Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 still crashes with “Symbol not found: _ruby_threadptr_data_type” I run this: gem install ruby-debug19 And in my cucumber env.rb file, I have this: require 'ruby-debug' When I try to run, though, I get this exception: /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_current_thread - /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so