gem 'debugger', group: [:development, :test]- Add
debuggerto anywhere in code that needs a breakpoint. - Refresh the page, the
rails serverterminal will stop, usehelp.listorlshow the line in codeppis pretty print a variablestep,next/n,continueirbto ruby shell
range = date.beginning_of_day..date.end_of_day