Coder Social home page Coder Social logo

pry-plus's Introduction

pry-plus

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

Dependent Gems

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.

  • 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.

Somewhat of a competitor to pry-rescue, but implemented differently. Currently doesn't work on C exceptions (such as 1/0 errors).

  • Let an exception happen in the REPL, then use enter-exception to find it.

  • Inline-style trap

  • Block wrapper-style trap

  • http://vimeo.com/36061298 ← "mini screencast"

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.

  • 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.

Replacement for the undermaintained gist gem.

  • Improved implementation for Pry's gist command.

  • Check out the jist -h output on the CLI, by the way.

pry-plus's People

Contributors

rking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pry-plus's Issues

get all underlying gems

i would like to simply require 'pry-plus' and have all of the underlying gems automatically required for me.

Broken Pry

Just installed your gem and now I get this error every time I try to start pry:

/Users/jhn/.rvm/gems/ruby-1.9.3-p194@rails327/bin/ruby_noexec_wrapper:14: stack level too deep (SystemStackError)

I'm using this custom .pryrc.

pry and pry-plus in production

Hello.
I'd like to have rails console using pry in RAILS_ENV=production too.

but if I have following in Gemfile

gem 'pry-rails'
gem 'pry-plus', group: :development

then all the deps are loaded too, even in unicorn instances. My particular problem is with pry-rescue, intercepting SIGQUIT, and that's messes up with unicorn reloading.

Do you think it's possible to load pry-plus deps only when actually starting rails console?

Segmentation fault with Pry-Plus when called through RSpec

I'm running into a Segmentation fault inconsistently when a add binding.pry to my spec file. What's strange is that it sometimes works, this error is intermittent. The specific error is:

/home/vagrant/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/pry-stack_explorer-0.4.9.1/lib/pry-stack_explorer/when_started_hook.rb:6: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux]

I have pry-plus and rspec-core 3.0.0.beta1 in my gemfile
pry -v = Pry version 0.9.12.4 on Ruby 1.9.3
ruby -v = ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux]

I'm running my ruby dev on a Linux 10.04.4 Virtualbox called from a Vagrantfile.
Thanks for the help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.