是否有适用于 ruby 2.0 的 pry 调试设置? [英] Is there a pry debug setup that works with ruby 2.0?
问题描述
我在 OSX 上使用 ruby 2.0.0-p195.撬调试器不起作用(步骤/继续/下一步似乎都像 continue
一样工作).是否有适用于 ruby 2.0 的 pry 调试 gem?
I'm using ruby 2.0.0-p195 on OSX. pry-debugger does not work (step/continue/next all appear to work like continue
). Is there a pry debugging gem that works with ruby 2.0?
更新:pry-debugger
和 pry-byebug
似乎都可以在一个简单的项目中使用 ruby 2.0.0-p195.在测试中使用 binding.pry
时,我还有一些其他冲突导致两者都失败......
update: pry-debugger
and pry-byebug
both appear to work with with ruby 2.0.0-p195 in a simple project. I have some other conflict that is causing both to fail when using binding.pry
in tests...
更新:pry-byebug
正在为我使用最新的 ruby 2.0 版本 2.0.0-p247,以及 pry-byebug 1.1.1 &再见 1.5.0
update: pry-byebug
is working for me with the latest ruby 2.0 release, 2.0.0-p247, with pry-byebug 1.1.1 & byebug 1.5.0
推荐答案
pry-byebug
1.1.1+ 适用于 ruby 2.0.0-p247.它是 pry-debugger
的一个分支 &仅适用于 ruby 2.0+.
pry-byebug
1.1.1+ works with ruby 2.0.0-p247. It's a fork of pry-debugger
& works with ruby 2.0+ only.
gem 'pry-byebug'
https://github.com/deivid-rodriguez/pry-byebug
更新了版本号
这篇关于是否有适用于 ruby 2.0 的 pry 调试设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!