Ruby - Debug

19 Apr 25

Followed through a rough AppSignal debug tutorial.
debug is the Rails default debugger since 7.1
binding.break (alias for binding.b and debugger per docs. Much more detail in the docs
continue
next
stepup/down (unsure of this)
list (where we are in the code)
bt (backtrace to show the trace of the steps we have followed)
on the fly
break <line number>
break BookStore#find_by_title (To the start of a specific method in a specific class)
break BookStore#find_by_title if: book1.title == "Germinal"
break (list the breakpoints)
del X (line number from (break command) to remove breakpoint)