pry-rescue

Dev tools

debugging

SHOW HN2012

69points
30comments
#343of 1,677 in 2012
Top 21%of 2012 by points

How HN took it

MixedNo clear lean

9 positive, 8 neutral or asking, 0 mixed, 2 critical, out of 19 comments about the project. Thread score +0.29.

Performance: 4 for, 2 againstIdea: 2 for, 0 againstExecution: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Useful and awesome work

    From 3 comments
    • This is awesome work, thanks! Just throwing this out there, I know a bit about the difficulties this would entail, but: Is it plausible to have something like this running in…
      malvim on HN
    • Great job by the way!
      cmer on HN
    • This is really cool. Looking forward to a rails version of the gem!
      teffen on HN
  • Works in production-like use, lighter than full debug mode

    From 1 comment
    • Not sure it's quite the same. My understanding is that `ipython --pdb` would run the entire program in debugging mode, causing a dramatic slow-down in performance of the app. The…
      banister on HN

Objections

  • Tab completion in Pry feels slow compared to ipdb

    From 2 comments
    • you're probably right, and it sounds like a nice idea to create an exception wrapper that on exception does `import ipdb; ipdb.set_trace()`. However, having worked with both pry…
      gingerlime on HN
    • I actually think it's mostly rails, not pry. I'm still new to rails and ruby, but somehow it feels much slower than django. Just loading the console feels like forever compared…
      gingerlime on HN

Requests

  • Rails integration or gem version

    From 2 comments
    • This is really cool. Looking forward to a rails version of the gem!
      teffen on HN
    • I know this is short and simple, but it still might be nice to wrap up in a gem. Or maybe work into the pry-rails gem?
      drewda on HN
  • Rack middleware

    From 1 comment
    • In rails you can just do: ``` class ApplicationController < ActionController::Base around_filter :pry_rescue if Rails.env == 'development' def pry_rescue Pry::rescue{ yield } end…
      cirwin on HN

Questions

  • Can it run in production to inspect saved state later?

    From 1 comment
    • This is awesome work, thanks! Just throwing this out there, I know a bit about the difficulties this would entail, but: Is it plausible to have something like this running in…
      malvim on HN
  • Compatibility with Pow and binding.remote_pry

    From 1 comment
    • I assume this won't work with Pow as it would require binding.remote_pry?
      cmer on HN
  • Support for Ruby 1.8.7

    From 1 comment
    • is there any way to make this compatible with ruby 1.8.7? Seems like just what I need, but haven't upgraded my current app with a newer version of ruby.
      meedimusic on HN

Alternatives named

  • pry-exception_explorer

    From 2 comments
    • Are there any difference to https://github.com/pry/pry-exception_explorer ?
      MartinMond on HN
    • Yes. Actually, pry-rescue not only imbibes pry-exception_explorer's power, but also provides its own possibilities. pry-rescue catches everything (even syntax errors).
      kyrylo on HN
  • ipython --pdb / ipdb

    From 1 comment
    • For python, ipython --pdb <derp.py> does the trick. Don't forget to install ipdb too, much nicer than plain pdb.
      makmanalp on HN
  • pry-remote and pry-debugger

    From 1 comment
    • Wow, pry and its plugins universe gets better each day. If you're new to pry I recommend you check pry-remote & pry-debugger.
      getriver on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/4439772)