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

CommandAliasesSubcommands
backtracebt w where
breakb
catchcat
conditioncond
continuec cont
continue!c! cont!
debug
deletedel
disabledisbreakpoints display
displaydisp
down
edited
enableenbreakpoints display
finishfin
framef
helph
historyhist
infoiargs breakpoints catch display file line program
interruptint
irb
kill
listl
methodminstance
nextn
pry
quitq
quit!q!
restart
savesa
setautoirb autolist autopry autosave basename callstyle fullpath histfile histsize linetrace listsize post_mortem savefile stack_on_error width
showautoirb autolist autopry autosave basename callstyle fullpath histfile histsize linetrace listsize post_mortem savefile stack_on_error width
skipsk
sourceso
steps
threadthcurrent list resume stop switch
tracevartr
undisplayundisp
untracevaruntr
up
varvall constant global instance local



Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5