Why am I getting this pry error?
[36] pry(main)> s = "pry"
Error: Cannot find local context. Did you use `binding.pry`?
It works fine in this screencast http://pryrepl.org/
Why am I getting this pry error?
[36] pry(main)> s = "pry"
Error: Cannot find local context. Did you use `binding.pry`?
It works fine in this screencast http://pryrepl.org/
It seems that s
, c
and n
are reserved commands on the pry-nav gem, found here, that help you to step through bindings.
Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'
They are set up by default but can be removed by putting:
Pry::Commands.delete 'c'
Pry::Commands.delete 'n'
Pry::Commands.delete 's'
in a file called .pryrc
in your root directory.