# Debugger in Rails Console

**URL:** <https://www.ruby-forum.com/t/debugger-in-rails-console/138181>\
**Category:** Rails\
**Created:** [May 20, 2008, 9:38pm UTC](https://www.ruby-forum.com/t/debugger-in-rails-console/138181 "2008-05-20T21:38:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@arco](https://www.ruby-forum.com/u/arco)\
**Post date:** [May 20, 2008, 9:38pm UTC](https://www.ruby-forum.com/t/debugger-in-rails-console/138181/1 "2008-05-20T21:38:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![arco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@arco](https://www.ruby-forum.com/u/arco)\
**Post date:** [May 20, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/debugger-in-rails-console/138181/2 "2008-05-20T21:42:47Z")

</div>

On 20 May 2008, at 18:49, Arco wrote:

> 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

---

<div class="post-metadata">

**Author:** ![arco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@arco](https://www.ruby-forum.com/u/arco)\
**Post date:** [May 21, 2008, 12:12am UTC](https://www.ruby-forum.com/t/debugger-in-rails-console/138181/3 "2008-05-21T00:12:58Z")

</div>

That worked - many thanks.

On May 20, 12:41 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
