ruby on rails - How to leave a method in pry -


i'm using binding.pry in ruby code , can't figure out how out of long method don't want in.

i know n next line , c continue, can't out of method. don't want exit want out of current method.

according documentation command looking f:

finish: execute until current stack frame returns.

and shortcuts

if defined?(prydebugger)   pry.commands.alias_command 'c', 'continue'   pry.commands.alias_command 's', 'step'   pry.commands.alias_command 'n', 'next'   pry.commands.alias_command 'f', 'finish' end 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -