Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacktrace is always empty with pry-byebug #22

Open
GCorbel opened this issue Jan 24, 2015 · 3 comments
Open

Stacktrace is always empty with pry-byebug #22

GCorbel opened this issue Jan 24, 2015 · 3 comments

Comments

@GCorbel
Copy link

GCorbel commented Jan 24, 2015

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 gem list :

$ gem list | grep pry  
pry (0.10.1)
pry-byebug (2.0.0)
pry-rails (0.3.2)
pry-stack_explorer (0.4.9.1)
@GCorbel
Copy link
Author

GCorbel commented Jan 25, 2015

Here is more information :

PryStackExplorer.frame_manager(_pry_) is always nil
Thread.current[:__pry_frame_managers__][_pry_] is always an empty array

I have only one value the array Thread.current[:__pry_frame_managers__] and this is the backtrace contained :

Thread.current[:__pry_frame_managers__].first.first.backtrace
=> ["/home/dougui/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pry-byebug-2.0.0/lib/pry-byebug/processor.rb:100:in `block in resume_pry'",
 "/home/dougui/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pry-byebug-2.0.0/lib/pry-byebug/processor.rb:26:in `block in run'",
 "/home/dougui/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pry-byebug-2.0.0/lib/pry-byebug/processor.rb:25:in `catch'",
 "/home/dougui/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pry-byebug-2.0.0/lib/pry-byebug/processor.rb:25:in `run'",
 "/home/dougui/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pry-byebug-2.0.0/lib/pry-byebug/processor.rb:96:in `resume_pry'",
 "/home/dougui/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pry-byebug-2.0.0/lib/pry-byebug/processor.rb:57:in `at_line'",
 "/home/dougui/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/byebug-3.5.1/lib/byebug/context.rb:80:in `at_line'",
 "/tmp/test.rb:21:in `<main>'"]

@justin808
Copy link

I'm having the same issue. Using Ruby-2.1.4 and latest versions of:

gem "pry"
gem "pry-stack_explorer"
gem 'pry-rails'
gem 'pry-byebug'

@deivid-rodriguez
Copy link

@GCorbel @justin808 pry-byebug is incompatible with pry-stack_explorer but it provides equivalent functionality built-in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants