about 3 years ago

Prerequisites

gem install pry

gem install pry-nav

touch ~/.pryrc

create alias for gdb style navigation

Pry.commands.alias_command 'c', 'continue'

Pry.commands.alias_command 's', 'step'

Pry.commands.alias_command 'n', 'next'

Example on how to use pry-nav

def some_method

binding.pry # Execution will stop here.

puts 'Hello World' # Run 'step' or 'next' in the console to move here.

end

← Howto: Performance Benchmarks a Webserver 同事亲历的一次电话诈骗 →
 
comments powered by Disqus