Added information about pry-nav for ruby debugging

This commit is contained in:
yan
2012-05-19 14:19:32 -07:00
parent cfe89df184
commit 0a921d3c1f
2 changed files with 13 additions and 2 deletions

View File

@@ -1,6 +1,11 @@
# === EDITOR ===
Pry.editor = 'vi'
# == Pry-Nav - Using pry as a debugger ==
Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'
# === CUSTOM PROMPT ===
# This prompt shows the ruby version (useful for RVM)
Pry.prompt = [proc { |obj, nest_level, _| "#{RUBY_VERSION} (#{obj}):#{nest_level} > " }, proc { |obj, nest_level, _| "#{RUBY_VERSION} (#{obj}):#{nest_level} * " }]