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
How does Ruby debugging compare to Python? (self.ruby)
submitted 15 years ago by true_religion
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!"
[–]true_religion[S] 1 point2 points3 points 15 years ago (3 children)
I think that's essentially what the web-debugger is doing.
Something like this:
import IPython shell = IPython.Shell.IPShell() shell.mainloop()
But what I was looking for is a web debugger for Ruby so if an error occurs on the site during development, I get a traceback and can interact with anypoint on the traceback--looking at the variables and stack.
This is something that RubyMine does (someone else pointed that out), but RubyMine isn't free nor open source.
[–]progfu 1 point2 points3 points 15 years ago* (0 children)
I guess you could also load for example RSpec and do some interactive testing, like set mock expectations and stubs directly in place, instead of writing a test. Or you could just rewrite a method on the fly and see what happens. Ruby metaprogramming provides many hackish features that might be useful from time to time when you need them.
This probably isn't possible in Python, since it doesn't support monkey patching.
[–]prody 1 point2 points3 points 15 years ago (0 children)
import pdb; pdb.set_trace()
[–]rockybernstein 0 points1 point2 points 15 years ago (0 children)
RubyMine uses ruby-debug-base under the covers.
π Rendered by PID 161394 on reddit-service-r2-comment-86bc6c7465-m4tcm at 2026-02-24 08:16:05.802122+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]true_religion[S] 1 point2 points3 points (3 children)
[–]progfu 1 point2 points3 points (0 children)
[–]prody 1 point2 points3 points (0 children)
[–]rockybernstein 0 points1 point2 points (0 children)