Skip to content

K-and-R/pry-plus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pry-plus

Maintainability

Get up and going with a good set of pry tools right away.

Based on RKing's pry-plus. Updated with support for ruby 2.5 (requires Ruby version >= 2.3.0).

Installation

In your Gemfile:

gem 'kandr-pry-plus'

Dependent Gems

The following gems will be included in your project as dependencies of pry-plus.

Allows you to look into the Ruby builtin classes with the ? and $ commands.

  • ? [].pop
  • $ [].pop
  • …etc.

Shows docs for dollar-vars and keywords

  • show-docmores
  • ? module
  • ? $`

An essential gem. Turns Pry into a steppable debugger. Ruby 2.5 compatible.

  • Making the basic require 'pry'; binding.pry from a script come alive.
  • In conjunction with plymouth or pry-rescue, to explore failing tests.
  • Following calls into other libs.

Allows you to navigate the call stack.

  • So many. TODO = document some.

Provides Pry.rescue do … end to capture any exceptions and start pry from the context of the source of the exception.

  • Shortens write-run-debug cycles when exceptions are involved.
  • Exploring causes of hard-to-replicate exceptions.
  • cd-cause to source of exceptions in code run within Pry
  • Rescues on test failure via require of pry-rescue/minitest and pry-rescue/rspec

An excellent tabcompletion gem. Having this dep enables new Pry stuff. Note that pry v0.9.10 doesn't have this feature, so you must use a repo version.

  • require 'x<tab>
  • {asdf: 1, hjkl: 2}[:a<tab>
  • Chain.of.calls.<tab> # Old pry completion was generic in this case.

About

Pry plus the essential plugins.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%