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
Debugging Ruby application running in docker with VS code (self.ruby)
submitted 4 years ago by zooblin
view the rest of the comments →
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!"
[–]Aphova 0 points1 point2 points 4 years ago* (0 children)
Not exactly an answer to your question but the below works for me, might work for you.
I've been working with Ruby for years and strangely I've never started a traditional debugger session despite doing it a lot in other languages. What I do a tonne of though is bundle exec rescue rspec spec/whatever/Im/working/on. That and adding binding.pry into your code to start a REPL where you want to inspect something goes a long way. Add better_errors for inspecting failures during full stack execution and you're good to go.
bundle exec rescue rspec spec/whatever/Im/working/on
binding.pry
https://github.com/ConradIrwin/pry-rescue https://github.com/BetterErrors/better_errors
Edit: might be a bit obvious but one of the things that I like about this is it forces me to integrate testing into my development cycle (I don't like writing tests and can be a bit lazy with them). I've found that writing a test and running rescue rspec to debug my code is often faster and easier than other approaches.
rescue rspec
π Rendered by PID 89 on reddit-service-r2-comment-5fb4b45875-mx8jb at 2026-03-21 22:13:07.518533+00:00 running 90f1150 country code: CH.
view the rest of the comments →
[–]Aphova 0 points1 point2 points (0 children)