pry / pry-stack_explorer

Walk the stack in a Pry session
Other
454 stars 28 forks source link

Abbreviation for show-stack command? #27

Closed pdxwolfy closed 4 years ago

pdxwolfy commented 8 years ago

I'm trying to create an abbreviation for the show-stack command, but it is unfortunately not woking:

  Pry.commands.alias_command "bt", "show-stack"

which yields:

1] pry(main)> bt
NameError: undefined local variable or method `bt' for main:Object
from (pry):1:in `get_scores'

when I try to use it. Any suggestions on how to accomplish this? TIA.

joallard commented 4 years ago

Interesting! I wonder what keyword would work best for most people

pdxwolfy commented 4 years ago

I got bt from the perl debugger where it stands for backtrace I think.

joallard commented 4 years ago

Track #50