On 10/18/07, Roger Pack <rogerpack2005 / gmail.com> wrote:
> eggman2001 wrote:
> > What's the difference between rdebug and the debugger that ruby comes
> > with?
>
> the rdebug one is faster as it 'plugs itself in' to certain handles
> within the interpreter (and only a few, so no watchpoints), which is
> fast.  The built in one is slow as molasses for whatever reason.  If I
> had to guess how it worked it would seem like it worked by running each
> line of code and examining the state or something. Very slow.
> GL.

I'll guess that they use the same mechanism, set_trace_func. While the
builtin one uses a callback written in ruby, the newer uses callbacks
from the C side.