我把binding.pry脚本放进去
但现在当它停在断点处时,
向我展示了这些信息.
哪个超出我的预期,如何解决?
帧数:0/11
From: /Users/me/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/pry-nav-0.2.4/lib/pry-nav/tracer.rb @ line 21 PryNav::Tracer#run:
12: def run(&block)
13: # For performance, disable any tracers while in the console.
14: # Unfortunately doesn't work in 1.9.2 because of
15: # http://redmine.ruby-lang.org/issues/3921. Works fine in 1.8.7 and 1.9.3.
16: stop unless RUBY_VERSION == '1.9.2'
17:
18: return_value = nil
19: command = catch(:breakout_nav) do # Coordinates with PryNav::Commands
20: return_value = yield
=> 21: {} # Nothing thrown == no navigational command
22: end
Run Code Online (Sandbox Code Playgroud)
Kar*_*rim 23
我最近遇到了同样的问题.通过在终端中键入以下内容来检查您的撬宝石:
gem list pry
Run Code Online (Sandbox Code Playgroud)
这应该返回所有与撬相关的宝石.我通过卸载所有额外的撬宝石(例如,pry-nav)解决了这个问题.导致这个问题的那个是pry bye-bug gem.