Object#tap and debugger in Ruby
I sometimes use Object\#tap
with debugger
to debug chained methods
That will show the following output:
Another useful trick for me is to setup a debugger and also set a new breakpoint at the end:
That will show the following output