I assume you mean the Ruby debugger implemented in Ruby. A good place to start would be to look at the introspection and reflection interfaces described here
If you want to be a little more adventurous, you can look at the source for ruby-debug
source
share