# Confused about 1.9.1 and ruby-debug19

**URL:** <https://www.ruby-forum.com/t/confused-about-1-9-1-and-ruby-debug19/195415>\
**Category:** Ruby\
**Created:** [September 23, 2010, 12:18am UTC](https://www.ruby-forum.com/t/confused-about-1-9-1-and-ruby-debug19/195415 "2010-09-23T00:18:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Markus\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@Markus\_F](https://www.ruby-forum.com/u/Markus_F)\
**Post date:** [September 23, 2010, 12:18am UTC](https://www.ruby-forum.com/t/confused-about-1-9-1-and-ruby-debug19/195415/1 "2010-09-23T00:18:36Z")

</div>

Hi,

I’m using 1.9.1p378 via rvm on Ubuntu 10.04 64bit.

In searching for a way to debug my application I tried to install  
“ruby-debug19” but it failed with:

ruby\_debug.c: In function â€˜ruby\_method\_ptrâ€™:  
ruby\_debug.c:141: error: â€˜rb\_method\_entry\_tâ€™ undeclared (first use in  
this function)  
ruby\_debug.c:141: error: (Each undeclared identifier is reported only  
once  
ruby\_debug.c:141: error: for each function it appears in.)  
ruby\_debug.c:141: error: â€˜methodâ€™ undeclared (first use in this  
function)  
ruby\_debug.c:142: warning: implicit declaration of function  
â€˜rb\_method\_entryâ€™  
ruby\_debug.c: In function â€˜debug\_event\_hookâ€™:  
ruby\_debug.c:719: error: â€˜rb\_method\_entry\_tâ€™ undeclared (first use in  
this function)  
ruby\_debug.c:719: error: â€˜meâ€™ undeclared (first use in this function)  
make: \*\*\* [ruby\_debug.o] Error 1

Then I realized some kind of debugging actually is already available:

mfischer@ubuntu:~$ cat test.rb  
puts “foo”  
a = 5  
puts a  
mfischer@ubuntu:~$ ruby -rdebug test.rb  
Debug.rb  
Emacs support available.

test.rb:1:puts “foo”  
(rdb:1)

Now I’m a bit confused. 1.9.1 has some kind of debugging out of the box,  
but there’s also a gem which seems to target 1.9 which doesn’t work?

What would ruby-debug19 provide my in addition?

Googling around I found references to rdebug, but that isn’t available  
on my system. Is it part of ruby-debug19?

Now I’m not sure, do I’ve everything for debugging or am I missing  
something? Should I obtain ruby-debug19 otherwise or should I use  
something else … ?

thanks,

- Markus

---

<div class="post-metadata">

**Author:** ![Markus\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@Markus\_F](https://www.ruby-forum.com/u/Markus_F)\
**Post date:** [September 23, 2010, 5:41am UTC](https://www.ruby-forum.com/t/confused-about-1-9-1-and-ruby-debug19/195415/2 "2010-09-23T05:41:14Z")

</div>

> ruby\_debug.c: In function â€˜ruby\_method\_ptrâ€™:  
> ruby\_debug.c:141: error: â€˜rb\_method\_entry\_tâ€™ undeclared (first use in  
> this function)

I think there was some change in later patch levels of 1.9.1 that made  
this variable non global, so ruby-debug gem is broken there.

> Now I’m a bit confused. 1.9.1 has some kind of debugging out of the box,  
> but there’s also a gem which seems to target 1.9 which doesn’t work?

[http://en.wikibooks.org/wiki/Ruby\_Programming/Standard\_Library/Debugger](http://en.wikibooks.org/wiki/Ruby_Programming/Standard_Library/Debugger)  
should help clarify. You could also use 1.9.2 which works with the  
ruby-debug19 gem.  
-r

---

<div class="post-metadata">

**Author:** ![Markus\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@Markus\_F](https://www.ruby-forum.com/u/Markus_F)\
**Post date:** [September 23, 2010, 4:18pm UTC](https://www.ruby-forum.com/t/confused-about-1-9-1-and-ruby-debug19/195415/3 "2010-09-23T16:18:34Z")

</div>

On 23.09.2010 05:41, Roger P. wrote:

> [Ruby Programming/Standard Library/Debugger - Wikibooks, open books for an open world](http://en.wikibooks.org/wiki/Ruby_Programming/Standard_Library/Debugger)  
> should help clarify. You could also use 1.9.2 which works with the  
> ruby-debug19 gem.

I now realized why I’m confused: because I found I had installed 1.9.1  
on some machine and I’ve installed ruby-debug19 there along with  
ruby-debug-base19. This is 1.9.1p387 with ruby-debug-base19 (0.11.23)  
and ruby-debug19 (0.11.6) .

Now I see the current version of ruby-debug-base19 is now at 0.11.24,  
and that’s actually the package which doesn’t work anymore.

Is this a bug I should report? For some strange reason on the ruby-debug  
page on githib there’s no “Issue” tab …

Thanks for the useful link,

- Markus

---

<div class="post-metadata">

**Author:** ![Markus\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@Markus\_F](https://www.ruby-forum.com/u/Markus_F)\
**Post date:** [September 23, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/confused-about-1-9-1-and-ruby-debug19/195415/4 "2010-09-23T18:49:27Z")

</div>

> Is this a bug I should report? For some strange reason on the ruby-debug  
> page on githib there’s no “Issue” tab …

Sure bring it up here: [http://groups.google.com/group/ruby-debugger](http://groups.google.com/group/ruby-debugger)
