I have just upgrade to ruby on rails 3.0.9 from using rails 2.X.
I have been writing feature tests in cucumber and used the capybara-firebug gem and specifically the included step stop and let me debug frequently to debug.
However after the update I keep getting a error saying:
When stop and let me debug # capybara-firebug-1.2.3/lib/capybara/firebug.rb:52
cannot load such file -- ruby-debug (LoadError)
My research sofar has led me to that the problem has to do with ruby-debug gem that does not work with ruby 1.9.3 wich I am currently using.
I tried an alternative, debugger but now I am stuck with a problem when running tests, EVEN after uninstalling debugger as I read that ruby-debug19 should be a better alternative.
This is the error I get now when running tests:
uninitialized constant Debugger::LocalInterface::Readline (NameError)
How do I get rid of that and get the debug to work properly again?
Not sure if you’re using
rvmor not. But I think you’re possibly missing agem. If usingrvm, confirm thatreadlineis installed:Next confirm that
ruby-debug19is installed correctly:SOURCE: this SO question/answer: debug rails 3.1.1 application