15

The pry-debugger is very usefull. It has the following commands :

Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'
Pry.commands.alias_command 'f', 'finish'

However, I dont know how to step into. That is, when a function is called, I want the debugger to open up this function and show me its execution.

How can I do that ?

Benjamin Crouzier
  • 40,265
  • 44
  • 171
  • 236

1 Answers1

17

As you said @deivid, step steps into, while next steps next. I was mistaken.

Benjamin Crouzier
  • 40,265
  • 44
  • 171
  • 236
  • 8
    Yeah, in every ruby debugger I know, **step** means _step into_, **next** means _step over_, **finish** means _step out_ and **continue** means... _"step away"_ – deivid May 30 '13 at 21:53
  • Few comments and answers and non has been tested. Try the **next** and you will see it steps **into** the function, **not** over! – Aleks Feb 26 '14 at 12:53
  • for what it's worth: I used pry-debugger for a long time and next worked, but I agree with @Aleks that now it steps into. I have no idea why. – riffraff Jun 05 '14 at 13:02
  • `next` steps over now. – lmat - Reinstate Monica Feb 07 '20 at 22:16