Does anybody know why, when using ruby-debug by calling debugger in a method called as a before_filter, the params and session hashes are not defined?
class MyExampleController < ActionController::Base
before_filter :test_hashes
def test_hashes
pp session
pp params #both work as expected..
debugger #calling the ...
Whenever I use 'n' to step over a line it steps into it instead. This happens to me on all the versions of jruby i've tried, the latest being 1.3.1
Does it work right for anyone? If so any idea how to fix it, because it's too painful when it steps into every function every time.
Also, I use it like this if it makes any difference.
re...
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 "debugger" calls in action_controller/routing/route_set.rb for example.
What am I missing?
...
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 ruby-debug:
ERROR: Failed to build gem native extension.
C:/Ruby19/bin/ruby.exe extconf.rb
Can't han...
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 Makefile
make
'make' is not recognized as an internal or external command,
operable progr...
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 test
debugger
end
....
end
What confuses me is that, when the action is tri...
Using ruby-debug, when I issue a list command, it shows old code. So if I update the code surrounding (especially before) the debugger command in the model it still shows the old code.
The only way I have found to 'refresh' this code is by stopping the server and running it again.
Is there a better way?
Thanks,
Josh
...
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 do I fix this?
...
Is there any command either in debugger or ruby-debug to get a list of all gems and/or plugins loaded in memory for a Rails process? I understand only the 'require' gems are loaded but I would like to quickly see what got loaded during runtime.
...
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 could before. Running the rake task normally works perfect, just debug doesnt. Its not just li...
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 ruby-debug, which of course doesn't work (building native extensions) and is contrary to ...
How do you guys debug your Rails apps? I have seen a link to datanoise.com that is supposed to show how to use ruby-debug with Textmate using a bundle.. but it looks like the page is down. Does anyone know how to set this up? Thanks!
...
I am trying to get a decent navigation between my methods in TextMate. I would love to have a list of them in a drawer, but I guess there is no such solution yet, right? Therefore I am trying to set up RubyAMP to work with Ruby 1.9.1-p378 installed via RVM, but have some troubles. RubyAMP needs ruby-debug, and here is what I get if I try...
Hi,
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 http://wiki.github.com/mark-moseley/ruby-debug/installation-command-line-version
but whatever i do i can't install the gem. Installation ter...
Is there a way like how we debug models / controllers with logger.debug? Or even a better method?
Thank you!
Edit 1
Using ruby-debug seems like a steep learning curve for me, could anyone point me something similar to logger.debug, perhaps?
Edit 2
Alright, I think I started to get a grasp on ruby-debug.
Some useful notes for newbie...
Hi, I am now trying to learn ruby-debug gem, but there are many jargons I am unable to catch up. Wondering if anyone could help with the explanations?
I couldn't find them in http://bashdb.sourceforge.net/ruby-debug.html either. The author assumed we already understand them (where can I learn about them anyway?).
For example here is a ...