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
0
votes
1 answer

Failed to build gem native extension for ruby-debug-base19x

I am new to Ruby On Rails, I am installing the gem, ruby-debug-base19x. But without successful. I found some similar answer but no help. Building native extensions. This could take a while... ERROR: Error installing ruby-debug-base19x: ERROR:…
pmverma
  • 1,653
  • 13
  • 27
0
votes
1 answer

rails: debug rails application in eclipse / aptana

I can debug one of my old application. But when I create a new application. I tried to debug using eclipse / aptana. THe debugger didn't launch at all. Gemfile for my old application source 'http://rubygems.org' gem 'rails', '4.0.0' # Bundle edge…
wwli
  • 2,623
  • 6
  • 30
  • 45
0
votes
1 answer

Aptana ruby-debug-ide crash

i am using ruby-debug-ide with Aptana Studio 3, build: 3.4.1.201306062137. Rails 3.2.13 ruby 1.9.3p392 (2013-02-22) [i386-mingw32] ruby-debug-ide 0.4.17, ruby-debug-base19x 0.11) Sometimes (very often) when i refresh web browser (aptana server is…
user2607070
0
votes
1 answer

Why can't I set a breakpoint in ruby-debug?

When I try to set a breakpoint from the command-line ruby debugger "ruby-debug," I get the following error: (rdb:1) break 11 INTERNAL ERROR!!! undefined method `entries' for # I'm using JRuby version 1.7.3. I'm using ruby-debug…
Mashmagar
  • 2,556
  • 2
  • 29
  • 38
0
votes
3 answers

Having to restart thin server (with SSL) each time to trigger Ruby Debugger normal?

I installed the debugger gem in a project i'm working on. They are using thin server with ssl. When I put a debugger in the code, it doesn't trigger until I restart the server. And then if I remove a debugger, it doesn't go away until I restart the…
Matthew Berman
  • 8,481
  • 10
  • 49
  • 98
0
votes
1 answer

ruby-debug how to go inside a function

what is the command to go inside a function using ruby-debug? Example class Hello def meth1 debugger meth2 end def meth2 puts "hello" end end I want to go inside the meth2 and see the execution.Need similar commands like…
yednamus
  • 582
  • 1
  • 4
  • 22
0
votes
1 answer

Rails 3.2 debugger up key and down key is not working in Ubuntu 12

I have just installed rails in ubuntu 12 and I installed all its dependencies and gems required all project is running flowently . Only one thing I am really missing this time is ruby debugger is not 100% working in it. I don't know where I am doing…
Manish Shrivastava
  • 30,617
  • 13
  • 97
  • 101
0
votes
1 answer

Getting "[INFO] Unable to bind key for unsupported operation: backward-delete-word" when using ruby-debug with jruby 1.7.0

I get the following output after upgrading to jruby 1.7.0 and using ruby-debug: [INFO] Unable to bind key for unsupported operation: backward-delete-word [INFO] Unable to bind key for unsupported operation: backward-delete-word [INFO] Unable to bind…
Mark Burns
  • 158
  • 2
  • 9
0
votes
2 answers

rails debugger error

Trying to get rails debugger work. I did following: gem install debugger Added in Gemfile gem "debugger", "~> 1.2.0" bundle install - no error Now I put debugger in one of my controllers def show require 'debugger'; debugger @user =…
JVK
  • 3,782
  • 8
  • 43
  • 67
0
votes
1 answer

Debugging controller methods by running functional tests

I am in a situation where I need to step through the controller method when I run a functional test. I use ruby-debug to debug through my application. My app is a rails 3.1 app which uses ruby-1.8.7 . I can debug my code by using rails server…
vishal
  • 279
  • 4
  • 14
0
votes
2 answers

Installing rails 3

I'll be very grateful id someone can explain me what does that mean: ror@ubuntu:$ sudo gem install linecache19 -v '0.5.12' ERROR: Error installing linecache19: linecache19 requires Ruby version >= 1.9.2. ror@ubuntu:$ ruby -v ruby 1.9.3p194…
Benjamin Harel
  • 2,906
  • 3
  • 24
  • 32
0
votes
1 answer

gem install ruby-debug19 fails

Possible Duplicate: Debugging in ruby 1.9 I am unable to install ruby-debug19. I tried to follow http://isitruby19.com/linecache19 BUT it didnot help me I also followed the steps in Installing Gems without rvm, as root, with explicit version of…
su_
  • 55
  • 1
  • 1
  • 5
0
votes
1 answer

Install gem linecache19 : syntax error near unexpected token

I have tried to install a couple of ways but failed each time. Can you help? The outcome is always the same: ... creating Makefile make generating trace_nums-i386-mingw32.def /usr/bin/sh: -c: line 1: syntax error near unexpected token…
JellicleCat
  • 28,480
  • 24
  • 109
  • 162
0
votes
1 answer

Inspecting an implicit Exception when debugging inside a raise block

I'm using ruby-debug to dive into code that's throwing and silently eating exceptions. (The code is inside a gem, so I'm loathe to edit it directly without a really good reason.) I get to this line: 167 def catch_exceptions 168 …
Rob Howard
  • 1,789
  • 2
  • 20
  • 38
-1
votes
1 answer

Need to install ruby-debug to run the server in debugging mode

I have a Ruby on Rails application with Ruby 1.9.3p327 and Rails 3.2.11. I'm trying to use the Ruby-debugger plug-in for Sublime Text. I installed the "debugger" gem. There is no "ruby-debug19" gem in my project. Here is a snippet from my…
HK15
  • 737
  • 1
  • 14
  • 32
1 2 3
10
11