Debugger in Rails Console

I can embed ‘debugger’ statements in my controllers or models, and this triggers breakpoints when I run my app via the webserver using ‘script/server –debugger'.

However, when I run the app via the console using ‘rdebug script/ console’, the breakpoints are ignored.

Is there a way to cause the 'debugger' breakpoints to be recognized when running the app in the console??

Thanks, Andy

I can embed ‘debugger’ statements in my controllers or models, and this triggers breakpoints when I run my app via the webserver using ‘script/server –debugger'.

However, when I run the app via the console using ‘rdebug script/ console’, the breakpoints are ignored.

Call require 'ruby-debug' from the console.

Fred

That worked - many thanks.