rails session hangs on hitting debugger line of code

Hi - Am using ruby-debug gem. When i run my rails application, once the control reaches the ‘debugger’ line, the entire session hangs. I cannot type or execute any commands further. Can i get some help here?

My code:

I had problems with debugger too, try using pry.

If you are using ruby 1.9 or above then I believe ruby-debug is not compatible. I think pry, as already suggested, may be the best way to go.

Colin