Is there a pry debug setup that works with ruby 2.0?

∥☆過路亽.° 提交于 2019-11-30 16:38:17

问题


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?

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...

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


回答1:


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

updated with version numbers




回答2:


i found that removing pry-nav from my gemfile returned functionality to next. see also: issue #9



来源:https://stackoverflow.com/questions/16697970/is-there-a-pry-debug-setup-that-works-with-ruby-2-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!