# Ruby debug version

**URL:** <https://www.ruby-forum.com/t/ruby-debug-version/178077>\
**Category:** Ruby\
**Created:** [October 28, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/ruby-debug-version/178077 "2009-10-28T20:45:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [October 28, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/ruby-debug-version/178077/1 "2009-10-28T20:45:25Z")

</div>

Hi all.  
I’ve been toying with the idea of creating a patched version of ruby  
that is “debug friendly” for helping find leaks, et al.

Some ideas for it would be:

- enable GC\_DEBUG so you can know which ruby line created each object.
- patch in the object tracking API so you can trace which objects  
reference which others.
- patch the GC to allow for the ruby-prof malloc stats.

My thought is to start with 1.9 since it already has some [typically  
disabled] GC statistics I like.

Anything else you’d ideally like to see in it? Any suggestions?  
Thanks.  
-r
