How to move to the next line in binding.pry ?

vikas95prasad picture vikas95prasad · Nov 27, 2017 · Viewed 20.1k times · Source

In byebug we can move to next line by typing 'n', similarly is there anyway to move to the next line in 'pry' ?

I have gone through there documentation but nothing's works out.

Answer

garythegoat picture garythegoat · Nov 27, 2017

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.