You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 regels
535 B

  1. #-*-mode: Ruby; coding: utf-8;-*-
  2. Pry.config.prompt = [
  3. proc {|obj, nesting, _|
  4. nesting == 0 ? "#{obj}> " : "#{obj}:#{nesting}> "
  5. },
  6. proc {''}
  7. ]
  8. def load_pry_debugstuff
  9. if Gem::Specification::find_all_by_name('pry-debugger').size > 0
  10. require 'pry-debugger'
  11. Pry.commands.alias_command 'c', 'continue'
  12. Pry.commands.alias_command 's', 'step'
  13. Pry.commands.alias_command 'n', 'next'
  14. end
  15. end
  16. load_pry_debugstuff