How to move to the next line in binding.pry ?
Check out pry-nav, it gives you methods like next
and step
, which should be what you're looking for.
If you're in regular old Pry you can use exit
to go to the next binding.pry
or disable-pry
to exit Pry entirely.
You can't. pry doesn't have any command who let you jump to the next line. So, your alternatives are:
- Adding a new
pry.binding
on the next breakpoint and then usingexit
to jump between bingings. - Using a gem like
pry-byebug
orpry-nav
who adds thenext
command to jump to the next line. - Using a gem like
pry-byebug
orpry-debugger
who adds thebreak
command to add breakpoints likebreak <Class#method>
.
Installing pry-byebug
is the best solution for your case, you can't achieve this with just pry
.