22 Mar '13, 10pm
has_many :bugs, :through => :rails
has_many :bugs, :through => :rails Using ruby-debug with Pow Published over 1 year ago After moving to Sam Stephenson’s awesome Pow , not being able to use ruby-debug was the primary obstacle I had adjusting to my new development environment. But as it turns out, it’s very simple to use ruby-debug with Pow . Make sure you have ruby-debug in your Gemfile . gem ' ruby-debug19 ' # 'ruby-debug' if using Ruby 1.8 Add the following to the bottom of your application’s development.rb config file: unless $rails_rake_task require ' ruby-debug ' Debugger .settings[:autoeval ] = true Debugger .settings[:autolist ] = 1 Debugger .settings[:reload_source_on_change ] = true Debugger .start_remote end This will start a debugger server. Restart Pow and connect to your debugger server from a terminal: [[email protected] ~]$ rdebug -c Connected. You should now see a ruby-debug console whenever the ap...