Debugging in Ruby 2
byebug
installation performed by a rubygems
copy customized by setting Gem.install_extension_in_lib
to false.skip
to continue until the next breakpoint as long as it is different from the current one. You can use this command to get out of loops, for example (@tacnoman).continue!
(or continue unconditionally
) to continue until the end of the program regardless of the currently enabled breakpoints (@tacnoman).break
help text to clarify placeholders from literals.quit!
help to not show a space between "quit" and "!".def
keyword.remote_byebug
shortcut to start the most common case for remote debugging (#141).where
command failing on instance_exec block stack frames.restart
command crashing in certain cases because of a missing require 'English'
(#321, @akaneko3).restart
command crashing when debugged script is not executable or has no shebang (#321, @akaneko3).