Pry Error: Cannot find local context. Did you use `binding.pry`? Pry Error: Cannot find local context. Did you use `binding.pry`? ruby ruby

Pry Error: Cannot find local context. Did you use `binding.pry`?


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.