cldwalker/debugger

cannot load such file -- debugger

Closed this issue · 2 comments

gem install debugger

Added in Gemfile

gem "debugger", "~> 1.2.0"

bundle install - no error

Now I put debugger in one of my controllers

def show
    require 'debugger'; debugger
    @user = User.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.json { render json: @user }
   end
  end

When I point my browser, I get

LoadError in UsersController#show

cannot load such file -- debugger

I am using ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] and Rails 3.2.6 with Phusion passenger

Can you help me to troubleshoot this issue?

I don't have these problems when using standard rails s. You may want to double check that you've restarted passenger to load the new gem touch tmp/restart.txt.

Closing. Feel free to respond if you need more help.