bundle exec ruby -r pry hogehoge.rb
#bundle exec ruby -r pry-debugger hogehoge.rb
bundle exec ruby -r pry-byebug hogehoge.rb
# Gemfile
# Ruby1.9.x
gem 'pry-debugger'
# Ruby2.0
gem 'pry-byebug'
Pry.commands.alias_command 'c', 'continue' | |
Pry.commands.alias_command 's', 'step' | |
Pry.commands.alias_command 'n', 'next' | |
Pry.commands.alias_command 'f', 'finish' | |
Pry.commands.alias_command 'q', 'quit' | |
Pry.commands.alias_command 'b', 'break' | |
Pry.commands.alias_command 'r', 'reload-method' |
bundle exec ruby -r pry hogehoge.rb
#bundle exec ruby -r pry-debugger hogehoge.rb
bundle exec ruby -r pry-byebug hogehoge.rb
# Gemfile
# Ruby1.9.x
gem 'pry-debugger'
# Ruby2.0
gem 'pry-byebug'