引き続き、デバック環境を構築していきます。
当初、1.8.xのRubyでデバッグ環境を構築したときは、
gem install ruby-debug
gem install ruby-debug-ide
にて、各デバッグモジュール?をインストールできたのですが、
今回、ruby-debugは、
germ install ruby-debug --platform mswin32
うまくいったのですが、
ruby-debug-ideは、インストールに失敗しました。
また、ruby-debug-ide-0.4.16.gemを入手して、手動インストールを試みましたが
やっぱり駄目でした。
推測ですが、1.9.x用ではないのかもしれません
そこで、ビルド環境を用意することにしました。
ruby on railsデバッグ環境の構築(1) でダウンロードした、DevKitのファイルを
実行してファイルを解凍します。解凍したら、コマンドプロンプトで解凍先のフォルダーに移動して
(ここでは、C:\Ruby192のしたにDevKitのフォルダーを展開)
DevKitを利用するために
以下の2コマンドを実行
>ruby db.rb init
[INFO] found RubyInstaller v1.9.2 at C:/Ruby192
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby192'
[INFO] Installing 'C:/Ruby192/lib/ruby/site_ruby/devkit.rb'
これで、ビルド環境が整いました。