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
1
vote
1 answer

Debugging migrations in rails 3 using ruby-debug?

How do I debug my migrations using ruby-debug in rails 3? running rake db:migrate does not seem to trigger any debugger command as in Rails 2. And rake db:migrate --debugger does not work either. Thanks.
jaycode
  • 2,926
  • 5
  • 35
  • 71
1
vote
1 answer

Running Ruby debugger on Eclipse PDT

I am trying to run a ruby debugger in Eclipse. I have not run a ruby debugger before, so I am not sure where to troubleshoot the problem. I am using Eclipse for PHP Developers, Version: Helios Release, Build id: 20100617-1415. I am using Ruby 1.8.6…
Dave McNulla
  • 2,006
  • 16
  • 23
1
vote
1 answer

installing ruby-debug-ide on an offline machine

I'm trying to install ruby-debug-ide-0.4.15.gem on an Ubuntu 10.04 machine which is not connected to the Internet, and I get the following errors: ERROR: Error installing ruby-debug-ide-0.4.15.gem: ERROR: Failed to build gem native…
Eytan
  • 113
  • 2
  • 7
1
vote
1 answer

What do i need to do to make ruby-debug19 run on ubuntu 10.04 with the ruby-full package from the repository?

i just installed the latest ubuntu version and the ruby-full package from the repository. Additionally i installed rubygems (1.3.7) and tried to do gem1.9.1 install ruby-debug1.9 as mentioned on…
bastl
  • 11
  • 3
1
vote
1 answer

Can not install gem ruby-debug19

I'm stuck with a problem, trying to install the Gem ruby-debug19. The installation halts with an extconf error. A similar problem has been treated here: ruby-debug wont install / build native extensions and an alternative gems is proposed here:…
Tanguy S
  • 133
  • 1
  • 14
1
vote
1 answer

debugger gem installation issue on windows 7

Not able to install debugger or ruby-debug19 on a windows 64 bit machine. Have installed Devkit, rubygems and able to install all the other gems except this. ruby -v ruby 1.9.3p551 (2014-11-13) [i386-mingw32] gem --version 2.4.1 ERROR : gem…
Supersonic
  • 430
  • 1
  • 11
  • 35
1
vote
1 answer

Ruby debugger opens on kernel_require.rb not file specified

I'm working through Beginning Ruby and am doing the first exercise with the debugger. It has me running ruby -r debug debug_test.rb. The debugger does launch, but not on the file I specified (I've tried several). Instead I get: Debug.rb Emacs…
Henry Marshall
  • 850
  • 2
  • 8
  • 21
1
vote
1 answer

Debugger in class method ends up in the controller

I have a controller with a action similar to this class EventsController < ApplicationController .... def test Events.first.test end .... end and a model similar to this class Event < ActiveRecord::Base .... def…
Felix Andersen
  • 1,381
  • 2
  • 14
  • 26
1
vote
0 answers

Can't list source using debug in ruby 1.8

I have a very simple ruby program (tmp.rb) I'm trying to debug: puts "a" puts "b" puts "c" require "debug" puts "d" puts "d" puts "e" When I run it, it enters the debugger interactive mode: a b c Debug.rb Emacs support available. tmp.rb:5: (rdb:1)…
loopbackbee
  • 21,962
  • 10
  • 62
  • 97
1
vote
1 answer

Ruby in Aptana: Cannot Start Debugger

When I try to start debugging in Aptana Studio 3, an error occurs: /Users/shia/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:296:in `to_specs': Could not find 'ruby-debug-ide' (>= 0) among 7 total gem(s) (Gem::LoadError) …
goldfrapp04
  • 2,326
  • 7
  • 34
  • 46
1
vote
2 answers

Rubymine 6.0.2, unable to debug

On my new OSX Mavericks install, I wanted to give Rubymine a try and just can't get the debugger working (although i managed to get it working on Windows 7 with IntelliJ and the ruby plugin). Here's what I did (XCode and commandline tools already…
chris polzer
  • 3,219
  • 3
  • 28
  • 44
1
vote
2 answers

Problem Installing Ruby-Debug on Windows

Any suggestions? C:\Users\Steve\barcoden>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:/Ruby/bin/ruby.exe extconf.rb creating…
JZ.
  • 21,147
  • 32
  • 115
  • 192
1
vote
1 answer

good tutorial on using ruby-debug to switch threads in a ruby program

I have some forks in my Rakefile and I want to dive into what each process does and I was wondering if there are any good tutorials out there on debugging a ruby program that has threads with a debugger. I'm looking for something that shows you how…
mpdunson
  • 227
  • 1
  • 11
1
vote
1 answer

Debugging/Breakpoint-ing the Rails Core with Ruby-Debug?

How do I debug the rails gems? I've just found the beauty of ruby-debug and am real excited, but I want to step through the routing code in action_controller, but the debugger isn't set up at this time, it seems like it's just skipping over my…
Lance
  • 75,200
  • 93
  • 289
  • 503
1
vote
0 answers

Ruby Debugger code for going into next line

I am working on ROR app , with ruby debugger. This is my code: def render(d) debugger folder=d.folders folders,empty_folders=check_empty_folder(folder) c = cost(folders) end Now in console the break point at folders=d.folders . Now if i do…
Deepender Singla
  • 999
  • 9
  • 28