Added information about pry-nav for ruby debugging
This commit is contained in:
@@ -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} * " }]
|
||||
|
||||
Reference in New Issue
Block a user