在ruby中调试1.9 [英] Debugging in ruby 1.9

查看:163
本文介绍了在ruby中调试1.9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你们在ruby 1.9中用什么来调试? rdebug似乎不兼容..有什么东西吗?

解决方案

注意:这个答案是正确的但现在已经过时了。看下面的正确答案。 TL; DR:现在使用'debugger'。



ruby​​-debug现在可用于Ruby 1.9.x.请参阅 http://www.github.com/mark-moseley



要安装(在1.9安装Ruby上使用gem):

  gem install ruby​​-debug19 

(可能在前面需要sudo)。


What do you guys use for debugging in ruby 1.9? rdebug doesn't seem to be compatible.. is there anything out there?

解决方案

Note: this answer was correct but is now out of date. See the below correct answer. TL;DR: use 'debugger' now.

ruby-debug is now available with Ruby 1.9.x. See http://www.github.com/mark-moseley

To install (using gem on 1.9 Ruby installation):

gem install ruby-debug19

(with perhaps the necessary 'sudo' in front of it).

这篇关于在ruby中调试1.9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆