# Interaction of debug.h and DRb

**URL:** <https://www.ruby-forum.com/t/interaction-of-debug-h-and-drb/87002>\
**Category:** Ruby\
**Created:** [February 27, 2007, 2:29pm UTC](https://www.ruby-forum.com/t/interaction-of-debug-h-and-drb/87002 "2007-02-27T14:29:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanholl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a87d85/32.png) [@hanholl](https://www.ruby-forum.com/u/hanholl)\
**Post date:** [February 27, 2007, 2:29pm UTC](https://www.ruby-forum.com/t/interaction-of-debug-h-and-drb/87002/1 "2007-02-27T14:29:52Z")

</div>

Hi,

This is 1.8.4 on Linux  
This is try.rb:  
require ‘drb/drb’

socketpath = “/var/tmp/pgproxy”  
proxy = DRb::DRbObject.new(nil, “drbunix:/#{socketpath}”)

## end-of try.rb

socketpath must be a valid unix domain socket of a DRb server.

ruby try.rb  
just runs fine.

But:  
ruby -rdebug try.rb  
Debug.rb  
Emacs support available.

try.rb:1:require ‘drb/drb’  
(rdb:1) c  
/usr/lib/ruby/1.8/drb/drb.rb:1647: `DRb::DRbServerNotFound' (DRb::DRbServerNotFound) from /usr/lib/ruby/1.8/drb/drb.rb:1647:in`current\_server’  
from /usr/lib/ruby/1.8/drb/drb.rb:1681:in `config' from /usr/lib/ruby/1.8/drb/drb.rb:1041:in`initialize’  
from try.rb:4  
/usr/lib/ruby/1.8/drb/drb.rb:1647: raise DRbServerNotFound unless  
server  
(rdb:1)

drb.rb has in config:  
def config  
current\_server.config  
rescue  
DRbServer.make\_config  
end  
current\_server raises DRb::DRbServerNotFound which just doesn;t get  
caught under  
the debugger.

Any ideas?

Han H.
