如何调试Ruby脚本? [英] How do I debug Ruby scripts?
本文介绍了如何调试Ruby脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从互联网复制了以下Ruby代码,并进行了一些修改。
I copied the following Ruby code from the Internet and made a few changes.
#insert code here
但它不起作用
请帮忙。我可以做些什么来自己调试程序?
Please help. What can I do to debug the program by myself?
推荐答案
安装通过:
$ gem install pry
$ pry
然后添加:
require 'pry'
到您的程序。
这篇关于如何调试Ruby脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文