Rails + Pow + pry/ruby-debug(Ruby 1.9.3)
pry
Gemfile
group :development, :test do gem 'plymouth', require: false gem 'pry-exception_explorer' gem 'pry-nav' gem 'pry-remote' gem 'pry-stack_explorer' end
breakpoint
binding.pry_remote
connect
$ bundle exec pry-remote
ruby-debug
Gemfile
group :development, :test do gem 'ruby-debug19' gem 'ruby-debug-base19x', '>= 0.11.30.pre10' gem 'linecache19', git: 'https://github.com/mark-moseley/linecache.git', ref: '869c6a65155068415925067e480741bd0a71527e' end
initializer
require 'ruby-debug' Debugger.settings[:autoeval] = true Debugger.settings[:autolist] = 1 Debugger.settings[:reload_source_on_change] = true Debugger.start_remote
breakpoint
debugger
connect
$ bundle exec rdebug --client
メモ
- ruby-debug-pry は
rdebug --client
からは利用できなかった - plymouth は使いたい時だけ
rspec --no-drb -r plymouth spec
まとめ
pry ヤバイ