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.
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.
On
You can't. pry doesn't have any command who let you jump to the next line. So, your alternatives are:
pry.binding on the next breakpoint and then using exit to jump between bingings.pry-byebug or pry-nav who adds the next command to jump to the next line.pry-byebug or pry-debugger who adds the break command to add breakpoints like break <Class#method>.Installing pry-byebug is the best solution for your case, you can't achieve this with just pry.
Check out pry-nav, it gives you methods like
nextandstep, which should be what you're looking for.If you're in regular old Pry you can use
exitto go to the nextbinding.pryordisable-pryto exit Pry entirely.