Is there a way to step through a Rails app in a debugger as it handles a request?
Yes, use pry and pry-debugger. Visit http://pryrepl.org/ for more info.
Yes.
Assuming you've started rails with:
rails s --debugger
and got a line in your code:
debugger
then, when you hit that breakpoint, just press:
Enter
to step through code line-by-line. You will also see Ruby code being executed en route as your app is being parsed. Not sure how you switch that off.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With