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

setup ruby/rails for debugging in Kubernetes - Puma::HttpParserError: Invalid HTTP format, parsing fails

I try to setup a VSCode or Intellij debugger for a Ruby on Rails API app, which runs in a Minikube Kubernetes cluster. When I try to start the debug session, the container throws this error: HTTP parse error, malformed request ():…
Jan
  • 12,992
  • 9
  • 53
  • 89
0
votes
1 answer

Using IRB (i.e. calling 'debugger') with Thor?

I'm trying to get Thor to trigger an IRB prompt when 'debugger' is reached in the code (like Rails, etc). Although I can trigger debugger, how do I get IRB to start automatically when debugger is triggered? Currently, I do the following in the…
bob
  • 605
  • 6
  • 12
0
votes
1 answer

Ruby - Evaluate expressions while debugging in Netbeans

I am using Netbeans as a ruby IDE, When I'm debugging I would like to be able to run an expressions to see values or ouputs of method calls when I have hit a break point. Is this possible in netbeans, if so how? Thanks
Aly
  • 15,865
  • 47
  • 119
  • 191
0
votes
2 answers

Drop into irb when debugging in Aptana 3

I am new to ruby and Aptana (I have used eclipse before) I was wondering if when debugging in Aptana we can drop into irb to play around with things with current values set. For example doing Java dev in eclipse on a breakpoint you can open Window…
Aly
  • 15,865
  • 47
  • 119
  • 191
0
votes
2 answers

How to debug pure ruby programs in RadRails

I am new to Ruby so have installed RadRails, Ruby 1.92 and ruby-debug-ide19. I have a very simple ruby program that prints hello world. But when I try and place a breakpoint in the code and run in debug mode all i get is the following line on the…
Aly
  • 15,865
  • 47
  • 119
  • 191
0
votes
0 answers

Ruby debugger: weird sort of caching

I'm using Ruby debugger gem in my RoR project. Ruby 1.9.3 and Rails 3.2 Debugger works fine by a sort of weird file caching occurs. I mean: First example [4, 13] in /.../app/controllers/fork_controller.rb 4 def index 5 6 …
HK15
  • 737
  • 1
  • 14
  • 32
0
votes
1 answer

Can I dynamically place a breakpoint in the event of an exception in Ruby?

I'd like to be able to set conditional breakpoints in ruby-debug, where the condition is "An exception was thrown." What I'd like is the ability to land on a breakpoint whenever an exception is thrown on that line (a la MATLAB's ultra-convenient…
0
votes
1 answer

Logstash Pipeline aborted

I keep getting this error. I am trying to parse a csv. file. I am wondering if I am missing a library or something. I am using logstash.bat -f logstash.conf command in windows command line to run this and getting this output. I am trying to output…
ScipioAfricanus
  • 1,331
  • 6
  • 18
  • 39
0
votes
0 answers

Unable to run debug on rubymine

RubyMine is not running server in debug mode it shows the following error Uncaught exception: Could not find yaml_db-0.3.0 in any of the sources I tried to change yam_db to 0.3.5 in gem file but that throws another error. Why is it still showing…
Aitizazk
  • 332
  • 1
  • 4
  • 16
0
votes
2 answers

Can't install fast debugger at Netbeans 6.9.1 for ruby 2.2.3p173

I'm trying to debug rails project (redmine) at Netbeans 6.9.1 When I click debug project I get the message: When I click Install Fast Debugger I get the following error: Building native extensions. This could take a while... ERROR: Error…
Anatoly
  • 5,056
  • 9
  • 62
  • 136
0
votes
1 answer

NoMethodError undefined method `[]=' for nil:NilClass

I created multiple classes with one test method to test wither the ruby objects get serialized correctly. The error returned: undefined method `[]=' for nil:NilClass from /Users/horse/workspace/queryapi/app/models/query_model.rb:193:in…
Horse Voice
  • 8,138
  • 15
  • 69
  • 120
0
votes
1 answer

gem install ruby-debug19 - *** extconf.rb failed ***

I recently blew away and re-installed rvm to fix some issues. Now, however, when I try and install ruby-debug19 I get: $ gem install ruby-debug19 ... then ... Building native extensions. This could take a while... ERROR: Error installing…
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
0
votes
2 answers

using ruby-debug with jruby-1.5.0

Release notes say that ruby-debug is installed by default. I'm using rvm. In my rails app I figured something as simple as script/server --debugger would suffice, but it complains that the ruby-debug gem isn't installed, suggests using gem install…
brad
  • 31,987
  • 28
  • 102
  • 155
0
votes
1 answer

Ruby Debug IDE error : ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:in `debug_load'

I hope someone can assist me. I have RubyMine 2.0.2 installed on Windows 7 32 bit computer. Since a week ago (I presume it must have been after I have update some gems) I cant seem to debug form the IDE. I am trying to debug a rake task which I…
Paul
  • 157
  • 1
  • 2
  • 14
0
votes
1 answer

Ruby - ruby-debug terminating without error on 'if __FILE__ == $0'

I'm trying to use ruby-debug to debug this script I've written and it keeps terminating on the line, if __FILE__ == $0. I step through each line before it, and then when it gets to that line it just quits. No errors or anything, it just quits. How…
Enrico Tuvera Jr
  • 2,739
  • 6
  • 35
  • 51