Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Tom Cloyd
RE: strange error when using $DEBUG [ reply ]  
2008-04-09 22:39
Thanks - v. helpful. I must say that after having spent a long night working with this gem I'm totally tickled with it. Very useful, and easy to use, and superbly designed. It did for me exactly what I wanted. What a pleasure! Again, thanks!!!!

By: Rocky Bernstein
RE: strange error when using $DEBUG [ reply ]  
2008-04-08 10:02
In short I think you can ignore that Exception message. In fact the current SVN version of ruby and the next release of ruby-debug you may see more messages like this.

When $DEBUG is true (ruby --debug ...), exceptions are shown even when they are handled. That particular exception you see comes from rubygems in checking to see if ruby-debug comes with Ruby (which it doesn't - yet).

By: Tom Cloyd
strange error when using $DEBUG [ reply ]  
2008-04-08 09:02
Running on Kubuntu Linux 7.10, Ruby 1.8.6, ruby-debug-0.10.0. I'm a ruby beginner, so I may be doing something really stupid.

Invoking my script with -
ruby --debug backman.rb

Executed first are these lines -
require 'rubygems'
require 'ruby-debug'
Debugger.start
main

In main, I have at a certain point -
if $DEBUG: debugger end

This produces these lines on the command line:
Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- ruby-debug
/var/lib/gems/1.8/gems/ruby-debug-0.10.0/cli/ruby-debug/processor.rb:29: warning: method redefined; discarding old interface=

But then it's obvious that ruby-debug is up and running -
backman.rb:81
case opt
(rdb:1) opt

This is exactly right, and, so far, things appear OK.

Is this something that someone needs to attend to, or that I need to file a bug report about?