Note: You must exit out of the current pry session by typing exit at the pry prompt and then re-run your file by entering ruby your_file_name. rb again in your terminal.
In order to start the Ruby debugger, load the debug library using the command-line option -r debug. The debugger stops before the first line of executable code and asks for the input of user commands.
To exit Pry unconditionally, type
exit-program
Edit from @Nick's comment: Also works:
!!!
I use:
disable-pry
This will keep the program running, but will keep it from continuing to stop execution. This is especially helpful when you are debugging in the console.
To exit everything, use:
exit!
This should ignore all proceeding bindings.
Triple exclamation (!!!
) would do that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With