Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 973
vikas95prasad Avatar asked Nov 27 '17 17:11

vikas95prasad


People also ask

How do you exit the binding loop in pry?

To exit everything, use: exit! This should ignore all proceeding bindings. This also kills the server at the same time.

How do you use a pry remote?

When the breakpoint is hit, pry-remote will block your app and open up a DRb endpoint that a client can connect to. Running pry-remote in a shell will then connect to the session and you'll be able to interact with Pry as you normally would. Simply call exit in the Pry session to unblock the application.

How does pry work?

Pry is like IRB on steroids Both IRB and Pry use REPL commands: Read, Evaluate, Print, and Loop. But Pry allows you to go further when debugging. For example, Pry gives you color-coded syntax, which helps when you're trying to figure out what will happen when code is executed.


1 Answers

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.

like image 153
garythegoat Avatar answered Sep 22 '22 23:09

garythegoat