nixme / pry-nav

Binding navigation commands for Pry to make a simple debugger
MIT License
390 stars 35 forks source link

pry-nav is having problems with pry-remote #10

Closed mrinterweb closed 12 years ago

mrinterweb commented 12 years ago

Myself and other people are having problems using pry-nav with pry-remote. https://github.com/Mon-Ouie/pry-remote/issues/14

If the pry-remote gem is not included, pry-nav appears to work fine.

dleatham commented 12 years ago

+1

nixme commented 12 years ago

I just pushed a fix. Mind trying against pry-nav master?

mrinterweb commented 12 years ago

That fixed the problem. The only thing I am noticing now is that the convienient shortcut of using 'c' and 'n' instead of "continue" and "next" are no longer working. I really do prefer being able to use 'c' and 'n' for debugging.

mrinterweb commented 12 years ago

Is pry-remote required to use pry-nav? As far as I can tell pry-nav works well without pry-remote.

Nevermind. I guess not. I just did not read the readme very close.

nixme commented 12 years ago

The shortcuts were removed unfortunately. See #3 for discussion.

No pry-remote isn't required, but if you do use it, pry-nav modifies it slightly so "next", "step", and "continue" don't close the DRB connection.

banister commented 12 years ago

@mrinterweb to add them back in put this in your .pryrc

Pry.commands.alias_command "c", "continue"
Pry.commands.alias_command "s", "step"
Pry.commands.alias_command "n", "next"
mrinterweb commented 12 years ago

@banister thank you. I can see the likelihood of conflicts with variable names in the current context so I can understand how it might be bad to alias 'c', 's', and 'n'.

@nixme your previous commit seems to solve the problem. I am going to close this issue.