# Problem with ruby-debug

**URL:** <https://www.ruby-forum.com/t/problem-with-ruby-debug/127943>\
**Category:** Rails\
**Created:** [February 2, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/problem-with-ruby-debug/127943 "2008-02-02T23:37:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottd72](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@scottd72](https://www.ruby-forum.com/u/scottd72)\
**Post date:** [February 2, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/problem-with-ruby-debug/127943/1 "2008-02-02T23:37:41Z")

</div>

Linux Ubuntu  
Ruby 1.8.6  
Rails 2.0.2  
ruby-debug 0.10.0  
mongrel 1.1.3

Installed the ruby-debug gem, no problem, it also installed  
ruby-debug-base as a dependency

added deb"ugger to a line in a controllor

started mongrel  
brought up web page in firefox that would call the function in the  
controllor that has debugger in it. The browser hangs indicating it has  
hit a breakpoint

the console then displays

/home/scott/NetBeansProjects/webmonitor/app/controllers/driller\_controller.rb:14  
@drillerschoice = “choice”

which is right after the line with “debugger”

I get no (rdb:xx) debugger prompt and if I press any key I get a  
message that mongrel has stopped.

in the development log

Processing DrillerController#index (for 127.0.0.1 at 2008-02-02  
13:59:34) [GET]  
Session ID: fc1bf7ce7ba6669f9570a9812302d4dc  
Parameters: {“action”=\>“index”, “controller”=\>“driller”}  
SQL (0.000189) SET SQL\_AUTO\_IS\_NULL=0  
Driller Columns (0.001163) SHOW FIELDS FROM `drillers`  
Processing DrillerController#index (for 127.0.0.1 at 2008-02-02  
14:06:08) [GET]  
Session ID: 05bdd2c0a0e7d34913a48d0195c4412a  
Parameters: {“action”=\>“index”, “controller”=\>“driller”}

nothing in the log to indicate a problem?

any ideas whats up?

Scott

---

<div class="post-metadata">

**Author:** ![scottd72](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@scottd72](https://www.ruby-forum.com/u/scottd72)\
**Post date:** [February 2, 2008, 11:50pm UTC](https://www.ruby-forum.com/t/problem-with-ruby-debug/127943/2 "2008-02-02T23:50:22Z")

</div>

I added Debugger.start after the  
require “ruby-debug”

and it works now

Is that normally required?

Is there another way?

Scott
