From bef362e228286485a8b46518bf5625083b9cec99 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Tue, 24 Nov 2015 15:29:23 +1100 Subject: [PATCH] pry: add more 3rd-party gems --- pry.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/pry.md b/pry.md index 2a828f27a..e5badfe32 100644 --- a/pry.md +++ b/pry.md @@ -108,6 +108,39 @@ Add the [hirb](https://rubygems.org/gems/hirb) gem. > view User.all > view User.all, fields: %w[id name email] +## pry-rescue +Add the [pry-rescue](https://github.com/ConradIrwin/pry-rescue) gem. + +```rb +Pry::rescue { + # raise exceptions here +} +``` + +Or run: + +``` +bundle exec rescue rspec +``` + +Additional commands: + +``` +pry(main)> cd-cause +pry(main)> try-again +``` + +## pry-remote +Add the [pry-remote](https://github.com/Mon-Ouie/pry-remote) gem. + +```rb +# In your code: +binding.remote_pry + +# In the shell: +bundle exec pry-remote +``` + ## Reference * [Pry](https://github.com/pry/pry)