From: Eric Hodel Date: 2006-07-07T08:43:39+09:00 Subject: Re: debugging proposal On Jul 6, 2006, at 12:07 AM, Mauricio Fernandez wrote: > On Thu, Jul 06, 2006 at 09:50:22AM +0900, Max Muermann wrote: >> Ideally, I would like to stick all this stuff in maybe a singleton >> Debugger class. I am however unsure on how to do this and would >> really >> like some help with that. The breakpoint_func is implemented using an >> event_hook, like trace_func, which requires me to implement it inside >> eval.c, as this functionality is (sensibly) not exposed. >> Unfortunately, >> this prevents me from implementing the debug support in a regular >> extension. > > It is exposed (ruby-prof uses it, and I'm using it too in rcov). > Just #include . Ryan Davis and Doug Beaver experimented with converting debug.rb to use event_hook via RubyInline, I don't know how far they got. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com