Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby / byebug / binding.pry: How to step back?

I type next on binding.pry or byebug to step over to the next line. I use step to step into the procedure. How do I step BACK a line?

I've been looking through documentation with no luck. Help greatly appreciated. Thanks.

like image 651
jamesdlivesinatree Avatar asked May 05 '15 20:05

jamesdlivesinatree


People also ask

How do I get out of pry Byebug?

To exit byebug , use the quit command (abbreviated to q ). Normally, if you are in an interactive session, this command will prompt to ask if you really want to quit. If you want to quit without being prompted, enter quit unconditionally (abbreviated to q! ).

How does binding pry work?

Calling binding. pry is essentially 'prying' into the current binding or context of the code, from outside your file. So when you place the line binding. pry in your code, that line will get interpreted at runtime (as your program is executed).


1 Answers

There is no way to step back when you using ByeBug.

like image 108
Madao Avatar answered Sep 23 '22 19:09

Madao