[#407] New feature for Ruby? — Clemens.Hintze@...

Hi all,

27 messages 1999/07/01
[#413] Re: New feature for Ruby? — matz@... (Yukihiro Matsumoto) 1999/07/01

Hi Clemens,

[#416] Re: New feature for Ruby? — Clemens Hintze <c.hintze@...> 1999/07/01

On Thu, 01 Jul 1999, Yukihiro Matsumoto wrote:

[#418] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/01

Hi

[#426] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/02

Hi,

[#440] Now another totally different ;-) — Clemens Hintze <c.hintze@...>

Hi,

21 messages 1999/07/09
[#441] Re: Now another totally different ;-) — matz@... (Yukihiro Matsumoto) 1999/07/09

Hi,

[#442] Re: Now another totally different ;-) — Clemens Hintze <c.hintze@...> 1999/07/09

On Fri, 09 Jul 1999, you wrote:

[#443] — Michael Hohn <hohn@...>

Hello,

26 messages 1999/07/09
[#444] interactive ruby, debugger — gotoken@... (GOTO Kentaro) 1999/07/09

Hi Michael,

[ruby-talk:00516] Re: interactive ruby, debugger

From: Michael Hohn <hohn@...>
Date: 1999-07-23 07:38:20 UTC
List: ruby-talk #516
>> ...
>> 
>> Hello, is there any person who uses debug.rb?
>> ...

I just worked with it and the following simple read-eval-print loop:

# repl.ruby
while (1)
  begin
    print(eval(readline("")))
    print("\n")
  rescue
    retry  # restart from beginning
  end
end

via	ruby -r debug repl.ruby

To get all needed traceback frames, the minor change

*** mydebug.rb	    1999/07/13 17:19:34	1.2
--- mydebug.rb		    1999/07/23 05:46:40
***************
*** 303,309 ****
      end
  
      if event == 'raise' 
!       # @frames.push binding
        excn_handle(file, line, id, binding)
      end
  
--- 303,309 ----
      end
  
      if event == 'raise' 
!       @frames.push binding
        excn_handle(file, line, id, binding)
      end
  
is needed...

Oh well, a few more iterations on debug.rb, and we'll
have the *perfect* debugger ;-).

cheers,
Michael
  

In This Thread