Questions tagged [ruby-debug]

The purpose of a debugger ruby-debug is to allow you to see what is going on “inside” a Ruby program while it executes.

The purpose of a debugger ruby-debug is to allow you to see what is going on “inside” a Ruby program while it executes.

It can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act:

  • Start your script, specifying anything that might affect its behavior.
  • Make your script stop on specified conditions.
  • Examine what has happened, when your script has stopped.
  • Change things in your script, so you can experiment with correcting the effects of one bug and go on to learn about another.

Link

Related tag

152 questions
2
votes
0 answers

Ruby debug ide with error ubuntu

I have too many errors when i want installing ruby-debug, and ruby-debug-ide. Error like this (bundle install): Using ruby_core_source (0.1.5) Using linecache19 (0.5.13) Using rails (3.2.5) Using ref (1.0.0) Installing ruby-debug-base19…
2
votes
0 answers

gem install ruby-debug is not working on windows 7

I am install ruby debugger on windows 7 and getting the following error. Before this question I looked at the following post and they are not working for me or I am obiviously misunderstanding something please help. Cannot install ruby-debug gem on…
Gainster
  • 5,481
  • 19
  • 61
  • 90
1
vote
1 answer

RSpec - Values not being set to user attributes properly

I've got a test I'm trying to debug and I've noticed that the values are not being set to the user attributes properly. When I run p user.height_feet or p user.height_inches from the debug console, I get nil, when instead I expect the them to return…
Nick
  • 9,493
  • 8
  • 43
  • 66
1
vote
2 answers

RVM, Ruby 1.9.3, rails 3.1.3: can't start rails server due to ruby-debug

When I try to start the rails server via rails s I get this error: /home/james/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in `require':…
James
  • 5,273
  • 10
  • 51
  • 76
1
vote
1 answer

Debug Not Working After Upgrade To Ruby 1.9.3 And Rails 3.2.2

I have upgraded my app to use Ruby 1.9.3p0 and Rails 3.2.2. To get bundler working I changed this: gem 'ruby-debug' to this: gem 'ruby-debug19' Now rails server gives: Could not find archive-tar-minitar-0.5.2 in any of the sources Run `bundle…
Tim Scott
  • 15,106
  • 9
  • 65
  • 79
1
vote
1 answer

Ruby-debug's "ps" command not working?

I'm diving into how to use the Ruby Debugger (ruby-debug), specifically in a Rails app. It seems that the ps command within rdb should evaluate an expression, sort it, and columnize the value. All of that is working except columnizing, it just lists…
Brian
  • 7,204
  • 12
  • 51
  • 84
1
vote
2 answers

Is ruby-debug-ide available to be installed on windows with ruby1.9.3?

I was trying to install ruby-debug-ide on my windows ruby environment. A lot of errors show up. My environment are Ruby1.9.3, Windows 7 and DevKit. So is there any guide to install ruby-debug-ide which can be used on the Aptana Studio.
Chris
  • 6,431
  • 10
  • 44
  • 59
1
vote
1 answer

How can I print debug string in Rails?

Are there simple ways to print debug strings in Rails? Something like the OutputDebugString() function in Windows.
Kichang Yang
  • 913
  • 2
  • 7
  • 11
1
vote
1 answer

ruby-debug does not halt

I had got my ruby-debug to work with ruby 1.9.3 and rails Rails 3.0.1. But now we upgraded to Rails 3.2.1 (not sure if it has anything to do with this), and when I put a ruby-debug in my code, if it's on initialize it stops and I can do my…
Matilda
  • 1,708
  • 3
  • 25
  • 33
1
vote
1 answer

ruby-debug-base19-0.11.26 installation errror

I'm trying to get ruby-debug working with ruby 1.9.3 and rails on OSX Lion. I've been following http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug , but my problem is I can't get ruby-debug-base19-0.11.26.gem In my .Gemfile for sources i…
Matilda
  • 1,708
  • 3
  • 25
  • 33
1
vote
2 answers

Unable to run ruby-debug on ruby1.9.3p0 under XP

How do I get ruby-debug to run under XP so that I can step through my Watir test scripts. I am unable to "require" ruby-debug on Windows XP. All of the solutions I have seen refer to a Unix-based system running Rails. Here is my system…
ddavisqa
  • 85
  • 10
1
vote
0 answers

nginx, rails and ruby-debug

I recently shifted my application from apache2 to nginx, and since then I face a peculiar problem with ruby-debug. When execution hits a debugger call, and ruby-debug is not running, it causes my system to crash. This problem has cropped up after…
zsquare
  • 9,916
  • 6
  • 53
  • 87
1
vote
1 answer

Ruby debug output - switch on/off easily

When I write draft and experimental code in Erlang I usually use this: %%% Switch debugging output on/off: -define(DBG(Str, Args), ok). %-define(DBG(Str, Args), io:format(Str, Args)). Commenting out just one line of code switches the debugging…
skanatek
  • 5,133
  • 3
  • 47
  • 75
1
vote
0 answers

Ruby Debugging with Pow and Aptana (Eclipse)

Does anybody know how to set up Ruby Debugging with Pow and Aptana (Eclipse)?
1
vote
1 answer

On Mac Big Sur, what is the right version of debase to use when debugging with rdebug-ide on a Rails 6 app?

I’m using Mac OS Big Sur with Xcode 13.2.1. I would like to run rdebug-ide in my Rails 6 (Ruby 3.0.2) app but not quite sure what version of debase I need, which is a requirement to install rdebug-ide as I understand it. When I try to install the…
Dave
  • 15,639
  • 133
  • 442
  • 830