4

What the difference between "step" and "next" in "byebug". When should one use one over the other?

american-ninja-warrior
  • 7,397
  • 11
  • 46
  • 80

1 Answers1

2

step: Step execution into the next line or method. Takes an optional numeric argument to step multiple times.

next: Step over to the next line within the same frame. Also takes an optional numeric argument to step multiple lines.

Please check through pry-byebug gem documentation for futher details:

https://github.com/deivid-rodriguez/pry-byebug#commands

Jay
  • 21
  • 4