# Undefined method \`run\_init\_script' for Debugger:Module

**URL:** <https://www.ruby-forum.com/t/undefined-method-run-init-script-for-debugger-module/180641>\
**Category:** Ruby\
**Created:** [December 25, 2009, 1:19pm UTC](https://www.ruby-forum.com/t/undefined-method-run-init-script-for-debugger-module/180641 "2009-12-25T13:19:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trapper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/2acd7d/32.png) [@trapper](https://www.ruby-forum.com/u/trapper)\
**Post date:** [December 25, 2009, 1:19pm UTC](https://www.ruby-forum.com/t/undefined-method-run-init-script-for-debugger-module/180641/1 "2009-12-25T13:19:21Z")

</div>

I’m new with ruby and rails.

My environmant is RadRails running on Ubuntu 9.04 with ruby 1.8.7

After I started the debug server from RadRails, I got this output

Fast Debugger (ruby-debug-ide 0.4.5) listens on localhost:44275  
=\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)  
=\> Rails 2.1.0 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server  
\*\* Starting Mongrel listening at 0.0.0.0:3000  
\*\* Starting Rails with development environment…  
\*\* Rails loaded.  
\*\* Loading any Rails specific GemPlugins  
\*\* Signals ready. TERM =\> stop. USR2 =\> restart. INT =\> stop (no  
restart).  
\*\* Rails signals registered. HUP =\> reload (without restart). It might  
not work well.  
\*\* Mongrel 1.1.5 available at 0.0.0.0:3000  
\*\* Use CTRL-C to stop.

Looks well. But executing a debugger statement in my controller, rails  
crashes with this message:

undefined method `run\_init\_script’ for Debugger:Module

The first backtrace line is:

/var/lib/gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby-debug-base.rb:239:in  
`debugger’

The next is the debuger line in my controller.

How to fix this?

---

<div class="post-metadata">

**Author:** ![trapper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/2acd7d/32.png) [@trapper](https://www.ruby-forum.com/u/trapper)\
**Post date:** [December 25, 2009, 3:33pm UTC](https://www.ruby-forum.com/t/undefined-method-run-init-script-for-debugger-module/180641/2 "2009-12-25T15:33:07Z")

</div>

It seems to be a RadRails issue.

Running debug sevrer from a terminal window and rails console from  
another one works well.
