# Problems with debugger

**URL:** <https://rubytalk.org/t/problems-with-debugger/19918>\
**Category:** ruby-talk\
**Created:** [3 August 2005 10:56 UTC](https://rubytalk.org/t/problems-with-debugger/19918 "2005-08-03T10:56:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TLOlczyk](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@TLOlczyk](https://rubytalk.org/u/TLOlczyk)\
**Post date:** [3 August 2005 10:56 UTC](https://rubytalk.org/t/problems-with-debugger/19918/1 "2005-08-03T10:56:05Z")

</div>

Hi I'm having trouble with the debugger on three fronts.  
First the version of ruby I am using is:

ruby 1.8.2 (2004-12-25) [i386-mswin32]

If I start the debugger from the command line I get this  
message:

bash-3.00$ ruby -rdebug ListDir.rb  
Debug.rb  
Emacs support available.

i:/programs/scripting/ruby/lib/ruby/site\_ruby/1.8/ubygems.rb:4:require  
'rubygems  
'

When I ask for a listing it has stopped on the line:  
require 'rubygems'

In Emacs (v 21.4.1) running rubydb I get a prompt but no output:  
untill I type the command quit. Then I see the output of the entire  
session.

Finally I can't seem to set breakpoints in FreeRIDE.

The reply-to email address is [olczyk2002@yahoo.com](mailto:olczyk2002@yahoo.com).  
This is an address I ignore.  
To reply via email, remove 2002 and change yahoo to  
interaccess,

> **···**
>
> \*\*  
> Thaddeus L. Olczyk, PhD
> 
> There is a difference between  
> \*thinking\* you know something,  
> and \*knowing\* you know something.

---

<div class="post-metadata">

**Author:** ![TLOlczyk](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@TLOlczyk](https://rubytalk.org/u/TLOlczyk)\
**Post date:** [3 August 2005 11:26 UTC](https://rubytalk.org/t/problems-with-debugger/19918/2 "2005-08-03T11:26:04Z")

</div>

I forgot. I also have the problem that emacs does not have any menu  
entries for the debugger.

The reply-to email address is [olczyk2002@yahoo.com](mailto:olczyk2002@yahoo.com).  
This is an address I ignore.  
To reply via email, remove 2002 and change yahoo to  
interaccess,

> **···**
>
> \*\*  
> Thaddeus L. Olczyk, PhD
> 
> There is a difference between  
> \*thinking\* you know something,  
> and \*knowing\* you know something.

---

<div class="post-metadata">

**Author:** ![Guest15](https://avatars.discourse-cdn.com/v4/letter/g/6de8d8/32.png) [@Guest15](https://rubytalk.org/u/Guest15)\
**Post date:** [3 August 2005 13:34 UTC](https://rubytalk.org/t/problems-with-debugger/19918/3 "2005-08-03T13:34:25Z")

</div>

Does this happen for all Ruby programs you try, or just this  
one? If just this one, could you post it?

> Hi I'm having trouble with the debugger on three fronts.  
> First the version of ruby I am using is:
> 
> ruby 1.8.2 (2004-12-25) [i386-mswin32]

I don't have a windows version to try, but if I can get a  
copy of your script I can try it on Linux and Mac OS X

> If I start the debugger from the command line I get this  
> message:
> 
> bash-3.00$ ruby -rdebug ListDir.rb  
> Debug.rb  
> Emacs support available.
> 
> i:/programs/scripting/ruby/lib/ruby/site\_ruby/1.8/ubygems.rb:4:require  
> 'rubygems  
> '
> 
> When I ask for a listing it has stopped on the line:  
> require 'rubygems'
> 
> In Emacs (v 21.4.1) running rubydb I get a prompt but no output:  
> untill I type the command quit. Then I see the output of the entire  
> session.
> 
> Finally I can't seem to set breakpoints in FreeRIDE.

Not a freeride user, sorry.

> **···**
>
> On 8/3/05, TLOlczyk \<olczyk2002@yahoo.com\> wrote:
> 
> > The reply-to email address is olczyk2002@yahoo.com.  
> > This is an address I ignore.  
> > To reply via email, remove 2002 and change yahoo to  
> > interaccess,
> > 
> > \*\*  
> > Thaddeus L. Olczyk, PhD
> > 
> > There is a difference between  
> > \*thinking\* you know something,  
> > and \*knowing\* you know something.
> 
> --  
> thanks,  
> -pate  
> -------------------------  
> We are often unable to tell people what they need to know, because  
> they want to know something else, and would therefore only  
> misunderstand what we said  
> - the Raven (George MacDonald, Lilith)

---

<div class="post-metadata">

**Author:** ![Guest15](https://avatars.discourse-cdn.com/v4/letter/g/6de8d8/32.png) [@Guest15](https://rubytalk.org/u/Guest15)\
**Post date:** [3 August 2005 13:35 UTC](https://rubytalk.org/t/problems-with-debugger/19918/4 "2005-08-03T13:35:44Z")

</div>

> I forgot. I also have the problem that emacs does not have any menu  
> entries for the debugger.

to start the debugger? You'll need to edit your .emacs to add them,  
I have no idea how you'd get debugger commands bound to  
buttons in the emacs GUI if that's what you're trying to do.

> **···**
>
> On 8/3/05, TLOlczyk \<olczyk2002@yahoo.com\> wrote:
> 
> > The reply-to email address is olczyk2002@yahoo.com.  
> > This is an address I ignore.  
> > To reply via email, remove 2002 and change yahoo to  
> > interaccess,
> > 
> > \*\*  
> > Thaddeus L. Olczyk, PhD
> > 
> > There is a difference between  
> > \*thinking\* you know something,  
> > and \*knowing\* you know something.
> 
> --  
> thanks,  
> -pate  
> -------------------------  
> We are often unable to tell people what they need to know, because  
> they want to know something else, and would therefore only  
> misunderstand what we said  
> - the Raven (George MacDonald, Lilith)
