在 ruby 1.9 中调试 [英] Debugging in ruby 1.9
本文介绍了在 ruby 1.9 中调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你们在 ruby 1.9 中使用什么进行调试?rdebug 似乎不兼容.. 有什么东西吗?
What do you guys use for debugging in ruby 1.9? rdebug doesn't seem to be compatible.. is there anything out there?
推荐答案
注意:这个答案是正确的,但现在已经过时了.请参阅下面的正确答案.TL;DR:现在使用调试器".
ruby-debug 现在可用于 Ruby 1.9.x.请参阅 http://www.github.com/mark-moseley
ruby-debug is now available with Ruby 1.9.x. See http://www.github.com/mark-moseley
安装(在 1.9 Ruby 安装上使用 gem):
To install (using gem on 1.9 Ruby installation):
gem install ruby-debug19
(前面可能有必要的sudo").
(with perhaps the necessary 'sudo' in front of it).
这篇关于在 ruby 1.9 中调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文