ConradIrwin / pry-rescue

Start a pry session whenever something goes wrong.
MIT License
852 stars 49 forks source link

No new instance #23

Open rking opened 11 years ago

rking commented 11 years ago

Sloppily pasting directly from banisterfiend (because I'm at work)

i noticed that 'cd' isn't a real cd
it creates a new pry instance
what's the rationale for that?
that kinda sucks, and it means it wont work OOTB with things
  like pry-remote and pry-remote-em
it doesnt use the same pry instance and push onto the binding_stack

I assume this is about the Pry.start.

ConradIrwin commented 11 years ago

Basically because I don't have a clue how to use the binding_stack. Happy to accept a PR.

rking commented 11 years ago

_pry_.binding_stack.push obj is like cd obj

ConradIrwin commented 11 years ago

also PryStackExplorer.create_and_push_frame_manager(binding_array, _pry_)