# First use of debugger weird

**URL:** <https://www.ruby-forum.com/t/first-use-of-debugger-weird/132825>\
**Category:** Ruby\
**Created:** [March 25, 2008, 3:21am UTC](https://www.ruby-forum.com/t/first-use-of-debugger-weird/132825 "2008-03-25T03:21:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [March 25, 2008, 3:21am UTC](https://www.ruby-forum.com/t/first-use-of-debugger-weird/132825/1 "2008-03-25T03:21:02Z")

</div>

Hi,

I just wrote a toy program:  
K:\_Projects\Ruby\_Ruby\_Techniques\Debugging\Test2.rb

I invoked the debugger with:  
ruby -rdebug K:/\_Projects/Ruby/\_Ruby\_Techniques/Debugging/Test2.rb

I got 5 lines (counting blank lines)  
Debug.rb  
Emacs support available.

K:/\_Utilities/ruby186-26\_rc2/ruby/lib/ruby/site\_ruby/1.8/ubygems.rb:  
10:require ‘rubygems’  
(rdb:1)

I gave the command “list 5” and got:  
(rdb:1) list 5  
[0, 9] in K:/\_Utilities/ruby186-26\_rc2/ruby/lib/ruby/site\_ruby/1.8/  
ubygems.rb  
1 # This file allows for the running of rubygems with a nice  
2 # command line look-and-feel: ruby -rubygems foo.rb  
3 #–  
4 # Copyright 2006 by Chad F., Rich Kilmer, Jim W. and  
others.  
5 # All rights reserved.  
6 # See LICENSE.txt for permissions.  
7 #++  
8  
9  
(rdb:1)

Apparently, it gave me the first lines of debug.rb rather than the  
first lines of the program I’m trying to process with the debugger:  
Test2.rb.

I used  
[https://www6.software.ibm.com/developerworks/education/os-distruby/section3.html](https://www6.software.ibm.com/developerworks/education/os-distruby/section3.html)  
as a guide, and it suggested that the debugging would start with the  
subject program.

What am I doing wrong? I’m running ruby186-26\_rc2 over WinXP-Pro/SP2.

Thanks in Advance,  
Richard

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [March 29, 2008, 3:20am UTC](https://www.ruby-forum.com/t/first-use-of-debugger-weird/132825/2 "2008-03-29T03:20:48Z")

</div>

On Mar 24, 10:16 pm, RichardOnRails  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Emacs support available.  
> 2 # command line look-and-feel: ruby -rubygems foo.rb  
> Apparently, it gave me the first lines of debug.rb rather than the  
> Richard  
> Apparently, there’s little or no interest in the Ruby debugger.

Happily, I found the rdebug plug-in. It works the way I expected.

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [March 31, 2008, 8:32am UTC](https://www.ruby-forum.com/t/first-use-of-debugger-weird/132825/3 "2008-03-31T08:32:23Z")

</div>

Hi,

In message “Re: First use of debugger weird”  
on Sat, 29 Mar 2008 11:20:06 +0900, RichardOnRails  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

|Apparently, there’s little or no interest in the Ruby debugger.

Sorry, I have been busy these days. But at least your mails is seen.

```
          matz.

```

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [April 3, 2008, 5:05am UTC](https://www.ruby-forum.com/t/first-use-of-debugger-weird/132825/4 "2008-04-03T05:05:48Z")

</div>

On Mar 31, 2:28 am, Yukihiro M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> In message “Re: First use of debugger weird”  
> on Sat, 29 Mar 2008 11:20:06 +0900, RichardOnRails [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:
> 
> |Apparently, there’s little or no interest in the Ruby debugger.
> 
> Sorry, I have been busy these days. But at least your mails is seen.
> 
> ```
> matz.
> 
> ```

Hi Matz,

No apology necessary!! You’ve made a huge contribution to the  
software-developer community. Thank you very much for all the work  
you done on our behalf.

Best wishes,  
Richard
