デバック用のgemをrails アプリに追加する
Better Errors
標準のRailsエラーページを遥かに優れたエラーページに置き換えます。 github.com
Binding of caller
Better Errors のエラー画面でirbを利用できるようになる。 github.com
Pry byebug
段階的なデバッグ機能とスタックナビゲーション機能を追加します。 github.com
Pry rails
Pryはirbの代替となるパワフルな対話ツール。ドキュメントが見れる。シンタックスハイライト。 github.com
hirb
irbのレコードの出力を整形する github.com
hirb unicode
hirbのUnicode Support github.com
pry-doc
pryのドキュメントをサポート github.com
view_source_map
パーシャルのパス情報をHTMLコメントとして出力 github.com
設定
Gemfile
group :development do # Better error page for Rack apps. Read more: https://github.com/BetterErrors/better_errors gem 'better_errors' # Retrieve the binding of a method's caller in MRI 1.9.2+. Read more: https://github.com/banister/binding_of_caller gem 'binding_of_caller' # Step-by-step debugging and stack navigation in Pry. Read more: https://github.com/deivid-rodriguez/pry-byebug gem 'pry-byebug' # Rails >= 3 pry initializer. Read more: https://github.com/rweng/pry-rails gem 'pry-rails' # A mini view framework for console/irb that's easy to use, even while under its influence. Read more: https://github.com/cldwalker/hirb gem 'hirb' # Unicode support for hirb. Read more: https://github.com/miaout17/hirb-unicode gem 'hirb-unicode' # Provide MRI Core documentation and source code for the Pry REPL. Read more: https://github.com/pry/pry-doc gem 'pry-doc' # Rails plugin to view source map. Read more: https://github.com/r7kamura/view_source_map gem "view_source_map" end
Gem をInstall
bundle install