How to use byebug in rails
How to use byebug in rails
$ gem install byebug
class PeopleController < ApplicationController
def new
byebug
@person = Person.new
end
end
byebug Commands
Byebug's commands
Command Aliases Subcommands backtracebt w wherebreakbcatchcatconditioncondcontinuec contcontinue!c! cont!debugdeletedeldisabledisbreakpoints displaydisplaydispdowneditedenableenbreakpoints displayfinishfinframefhelphhistoryhistinfoiargs breakpoints catch display file line programinterruptintirbkilllistlmethodminstancenextnpryquitqquit!q!restartsavesasetautoirb autolist autopry autosave basename callstyle fullpath histfile histsize linetrace listsize post_mortem savefile stack_on_error widthshowautoirb autolist autopry autosave basename callstyle fullpath histfile histsize linetrace listsize post_mortem savefile stack_on_error widthskipsksourcesostepsthreadthcurrent list resume stop switchtracevartrundisplayundispuntracevaruntrupvarvall constant global instance local
Comments
Post a Comment