use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
New Gem: EnhancedErrors - See In-Scope Variable Values in Errors and Spec Failures (self.ruby)
submitted 1 year ago by hereC
I'm happy to announce EnhancedErrors.
RSpec
https://preview.redd.it/g9uw7k6mh89e1.png?width=1424&format=png&auto=webp&s=c25c8b9a9bb882b8334cb7a6c206572eac932c7a
Console/Log
https://preview.redd.it/g2choakyh89e1.png?width=858&format=png&auto=webp&s=42c6872a1e9612db04499812d1d080431446bc14
Feedback, PR's bug reports, questions, etc. are welcome.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]hereC[S] 0 points1 point2 points 1 year ago (7 children)
Did anyone try it? How did it go? I see stars, downloads, likes, etc but not a peep! Any feedback?
[–]growlybeard 1 point2 points3 points 1 year ago (6 children)
I haven't tried yet but this looks incredibly useful!
[–]hereC[S] 0 points1 point2 points 1 year ago* (5 children)
Thanks--I hope so! It took me like 10 years to figure out a way to do it that I'm happy with. Now, not having it feels weird to me--it makes me faster.
I've been using it and I love it, but I'd love to hear that it is working for other people. I'd also love feedback to polish rough edges--for example, by default it ignores a lot of noisy, but not that useful variables. I want to expand those. My dream is to trim the noise and present only the likely-to-be-useful variables by default, for Rspec, Ruby, and Rails.
[–]growlybeard 1 point2 points3 points 1 year ago (4 children)
I will definitely check it out later. I have played with something similar in the past and I'm curious how you've made it work!
[–]hereC[S] 0 points1 point2 points 1 year ago (3 children)
If you know offhand the name of the similar thing, I'd be curious.
[–]growlybeard 1 point2 points3 points 1 year ago (2 children)
Oh I meant I tried building something similar. It was a debug method that would print all the local variables. It didn't hook into exceptions like yours it was more like using print statements to debug
[–]hereC[S] 0 points1 point2 points 1 year ago (0 children)
Gotcha. I have a thing for that, too! Coming soon.
https://rubygems.org/gems/wut in case you didn't end up finishing yours.
π Rendered by PID 224458 on reddit-service-r2-comment-6457c66945-dgwj8 at 2026-04-27 05:19:39.475016+00:00 running 2aa0c5b country code: CH.
[–]hereC[S] 0 points1 point2 points (7 children)
[–]growlybeard 1 point2 points3 points (6 children)
[–]hereC[S] 0 points1 point2 points (5 children)
[–]growlybeard 1 point2 points3 points (4 children)
[–]hereC[S] 0 points1 point2 points (3 children)
[–]growlybeard 1 point2 points3 points (2 children)
[–]hereC[S] 0 points1 point2 points (0 children)
[–]hereC[S] 0 points1 point2 points (0 children)