Forum: Ruby Having trouble using ruby-debug.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5d974c8e1436d84d3ff33c7df93bc65e?d=identicon&s=25 Richard Quadling (Guest)
on 2009-04-09 10:51
(Received via mailing list)

I'm on Windows.

I want to debug a rake process.

The rake works, but there is a bug in one of the processes involved in
the rake.

I'm gem install ruby-debug and that all looked OK.

I type rake -rdebug to get things going.

This is what I see:

[09/04/2009  9:43:23] [D:\] [] >rake -rdebug
Emacs support available.


So far so good.

If I now enter the command list :

(rdb:1) list
[1287, 1296] in C:/Ruby/lib/ruby/1.8/optparse.rb
No sourcefile available for C:/Ruby/lib/ruby/1.8/optparse.rb

which doesn't really make much sense to me. OK, I'm not really
interested in the code in optparse.rb. This was just my first attempt
to see what is going on.

The code between lines 1287 and 1296 of C:\Ruby\lib\ruby\1.8\optparse.rb
is ...

            opt, cb, val = sw.parse(val, argv) {|*exc| raise(*exc) if
            raise InvalidOption, arg if has_arg and !eq and arg ==
            argv.unshift(opt) if opt and (opt = opt.sub(/\A-*/, '-')) !=
            val = if cb
  , val) if setter
          rescue ParseError
            raise $!.set_option(arg, arg.length > 2)

So, the code DOES exist. Like I said earlier, the issue is within one
of the processes within the rake, not rake or ruby itself.

Any help would appreciated.

I'm a newbie here, so please be nice.


Richard Quadling.
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2009-04-10 20:37
Richard Quadling wrote:
> Hi.
> I'm on Windows.
> I want to debug a rake process.

Can you reproduce it somehow easily [and post an easy to reproduce
May want to report it to ruby-debug people.
3ccecc71b9fb0a3d7f00a0bef6f0a63a?d=identicon&s=25 Kent Sibilev (Guest)
on 2009-04-11 06:39
(Received via mailing list)
On Thu, Apr 9, 2009 at 4:48 AM, Richard Quadling
<> wrote:
> I type rake -rdebug to get things going.

Just FYI, -rdebug option doesn't activate ruby-debug, but instead it
makes you use the standard debugger that comes with every Ruby
This topic is locked and can not be replied to.