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
10
votes
2 answers

Determine if a program is running in debug mode

I use RubyMine to write and debug my Ruby 2.0 code. It uses ruby-debug-ide for that purpose. I want to know if a program is running in debug mode. I know there is the Ruby $DEBUG global variable, but as far as I understand ruby-debug-ide didn't…
ShockwaveNN
  • 2,227
  • 2
  • 29
  • 56
9
votes
5 answers

Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 still crashes with "Symbol not found: _ruby_threadptr_data_type"

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 $…
Don Leatham
  • 2,694
  • 4
  • 29
  • 41
9
votes
3 answers

Unable to install gem ruby-debug19 on win7 with installed ruby 1.9.2 and 1.9.3

I've tried many solutions but nothing seems to work! I use Ruby 1.9.3 and Rails 3.1.3 and I want to install the ruby-debug19 gem. This ist what I get from the PowerShell: PS C:\Users\**\**\**> gem install ruby-debug19 Temporarily enhancing PATH to…
jofe
  • 115
  • 1
  • 6
8
votes
2 answers

ruby-debug with Pow -- breakpoints never hit

I'm trying to use ruby-debug with Pow. Rails 3 app. I have done everything here: https://gist.github.com/1098830 I've restarted the server and machine several times. I can get rdebug to connect: → rdebug -c Connected. but it never stops at the…
99miles
  • 10,942
  • 18
  • 78
  • 123
8
votes
4 answers

ruby-debug and cucumber

I have a failing scenario in cucumber, and I'd like to debug my rails controller using ruby-debug. But if I add 'debugger' to the point where I want to break, it doesn't stop. I tried adding require of ruby-debug and rubygems to the…
Thiago
  • 2,238
  • 4
  • 29
  • 42
8
votes
7 answers

Cannot install ruby-debug gem on Windows

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…
JZ.
  • 21,147
  • 32
  • 115
  • 192
7
votes
1 answer

Installing ruby-debug-base19 on Windows in Ruby 1.9.3

I need to install ruby-debug-base19 in order to active debug on Netbeans IDE, when I execute: $ gem install ruby-debug-base19 I got the following error. Extracted from log generate C:/Ruby193/bin/ruby.exe extconf.rb checking for…
rmaceissoft
  • 512
  • 5
  • 16
7
votes
4 answers

Thin with SSL support and ruby-debug

Does anyone know of a way to run the ruby debugger and SSL at the same time with Thin? I've been using Thin successfully with Rails 3.0.10. I start it using rails server --debugger, and I can debug my code. Recently, I have also needed to add SSL…
Kevin
  • 744
  • 2
  • 7
  • 17
7
votes
1 answer

Ruby debug is stepping into rather than stepping over

I am writing a Rails 4 application in Ruby 2, and I am using the debugger gem to debug my code. Here is the situation currently: I place a debugger statement in my Rspec tests, run the tests in the shell, and the program breaks as expected.…
codysehl
  • 1,555
  • 2
  • 13
  • 23
7
votes
1 answer

Rails view activerecord sql statements on debug console

I am using debugger gem in my Rails 3.2 application. How do I view the resulting SQL statement of active record method calls on the debug console? For eg: If I run Product.all on the debug console it prints out all the products. I would also like…
thanikkal
  • 3,326
  • 3
  • 27
  • 45
6
votes
3 answers

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

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…
bodo
  • 827
  • 6
  • 19
6
votes
1 answer

Run ruby-debug on Heroku

Is there any way to do it? I often have issues that work locally but fail on Heroku for some reason related to the environment. It would be nice to be able to run the debugger there.
Reed G. Law
  • 3,897
  • 1
  • 41
  • 78
5
votes
1 answer

Error: installing ruby-debug-ide

The truth is that i am new to ruby on rails development. Not that i can not install the gem install ruby-debug-ide on aptana studio 3. gem install ruby-debug-ide Temporarily enhancing PATH to include DevKit... Building native extensions. This…
5
votes
2 answers

Debugging in RubyMine with Pow as a server - Ruby 2.1.1 + Rails 4

I have started using RubyMine 6. I am working on a Rails 4, Ruby 2.1.1 project. I am not able to find how to debug into RubyMine with Pow as a server. Can you please point me to the right direction?
Moon
  • 33,439
  • 20
  • 81
  • 132
4
votes
1 answer

How do I get ruby debugger to work in sinatra with shotgun?

Is there a way of running shotgun to allow for ruby debugger statements to run? the -d flag seems to be just for debugging output.
zlog
  • 3,316
  • 4
  • 42
  • 82
1
2
3
10 11