<p>Shoes has some built in dump commands (Shoes.debug), but are there other tools that can debug the code without injecting debug messages throughout?  Something like gdb would be great.</p>

[{'answer_id': 63923, 'author': 'Brian Phillips', 'author_id': 7230, 'author_profile': 'https://Stackoverflow.com/users/7230', 'pm_score': 1, 'selected': False, 'text': '<p>Have you looked at the ruby-debug gem?  </p>\n\n<pre>\n<code>\n% sudo gem install ruby-debug\n</code>\n</pre>\n\n<p>The rdebug executable gives you a similar interface to gdb (breakpoint setting, etc).  You just simply execute your script with rdebug instead of ruby.</p>\n\n<p>You can also do something like this to avoid manually setting breakpoints:</p>\n\n<pre>\n<code>\nclass Foo\n  require \'ruby-debug\'\n  def some_method_somewhere\n    debugger # acts like a breakpoint is set at this point\n  end\nend\n</code>\n</pre>\n\n<p>Here\'s a tutorial on ruby-debug: \n<a href="http://www.datanoise.com/articles/2006/7/12/tutorial-on-ruby-debug" rel="nofollow noreferrer">http://www.datanoise.com/articles/2006/7/12/tutorial-on-ruby-debug</a></p>\n'}, {'answer_id': 66791, 'author': 'Drew Olson', 'author_id': 9434, 'author_profile': 'https://Stackoverflow.com/users/9434', 'pm_score': 2, 'selected': False, 'text': '<p>The shoes console. Press Alt+/ (or apple+/ on a mac) to see the stack trace of your application.</p>\n'}, {'answer_id': 348595, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>You can also use Shoes.show_log to automatically open a debug console.</p>\n'}, {'answer_id': 595987, 'author': 'rogerdpack', 'author_id': 32453, 'author_profile': 'https://Stackoverflow.com/users/32453', 'pm_score': 2, 'selected': False, 'text': '<p>Note that if you use Alt + / you\'ll have to run that "before" starting the app</p>\n'}, {'answer_id': 1622173, 'author': 'greg', 'author_id': 196324, 'author_profile': 'https://Stackoverflow.com/users/196324', 'pm_score': 0, 'selected': False, 'text': '<p>I was a bit confused about the Apple-/ (or Alt-/) bit mentioned here. What I ended up doing was running <em>./shoes</em> with no arguments, which popped up the console, then started my app with <em>./shoes my_app.rb</em>. </p>\n'}]
['https://Stackoverflow.com/questions/63618', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7936/']