Pry – Part 4 – Debugger

You can inject a Pry REPL directly into somewhere that you want to debug.

Here’s an example of runtime invocation:


when run using ruby test.rb:

So, code is shown around the REPL invocation line with a cursor showing where the runtime has stopped.

For the best source of Pry documentation:

For more on Pry at runtime, see Pry – Part 5 – Pry at runtime.

Leave a Reply

Your email address will not be published. Required fields are marked *