You most likely shouldn't be using ruby-debug
and should upgrade to a more recent debugger.
Switch to debugger if you're using ruby 1.9.x or to byebug if using ruby 2.x and your problem should be gone. If you switch to byebug
, don't use the -d
flag, it will only affect performance and it doesn't provide any benefits.