pry-stack_explorer
pry-stack_explorer copied to clipboard
Walk the stack in a Pry session
``` ruby #!/usr/bin/env ruby require 'pry' def f puts 'f' end binding.pry f ``` ``` $ ./1.rb Frame number: 0/6 From: /home/yuri/_/1.rb @ line 7 : 2: require 'pry' 3:...
I use pry-byebug and no matter when I use the command `show-stack`, it's always empty. When I try to do `up`, I have always "Nowhere to go!". This is the...
I recently bumped a model of mine into a gem, which defines a class within a namespace as follows ``` module DE class Criteria ... end end ``` I'm including...
This is dependant on https://github.com/rubinius/rubinius/issues/2940. ``` rubinius 2.2.5 (2.1.0 e543ba32 2014-02-08 JI) [x86_64-linux-gnu] ``` ``` bacon -Itest -rubygems -a -q Testing pry-stack_explorer version 0.4.9.1... Ruby version: 2.1.0 ...........................................F...................... Bacon::Error: [3,...
I added ``` gem 'pry-stack_explorer' ``` to my Rails project's Gemfile, and now when doing `rails console`, I get the following: ``` macbuech:tttt josh$ rails c Loading development environment (Rails...
Seems to me like you can't `step` then get a working `show-stack` from the new method. Not sure how hard this would be to fix.
``` [68] (pry) #: 0> show-stack -c TypeError: true can't be coerced into Fixnum from /Users/john/.rvm/gems/ruby-1.9.3-p194/gems/pry-stack_explorer-0.4.5/lib/pry-stack_explorer/commands.rb:278:in `-' [69] (pry) #: 0> ```