Forum: Ruby Interaction of debug.h and DRb

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Han H. (Guest)
on 2007-02-27 15:29
(Received via mailing list)
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.
This topic is locked and can not be replied to.