Interaction of debug.h and DRb


#1

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:incurrent_server’
from /usr/lib/ruby/1.8/drb/drb.rb:1681:in config' from /usr/lib/ruby/1.8/drb/drb.rb:1041:ininitialize’
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.