Interaction of debug.h and DRb

H

Han Holl

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 Holl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top