Ruby 1.8.2 + dev-utils/debug + ^D or ^Z

I was using dev-utils/debug breakpoint with ^D (EOF) to resume after the
breakpoint without any problem with the not-yet-final release of Ruby 1.8.2
(from late 2004).

I just upgraded to the final 1.8.2 (1-click installer)
   ruby 1.8.2 (2004-12-25) [i386-mswin32]
and the ^D processing seems to not work.

It seems ^D get no response from IRB *when* inside a breakpoint. If I
directly start up IRB then ^D seems to work fine.

Blind trial-and-error revealed that ^Z followed by a <Enter> seems to signal
EOF when in a breakpoint.

Running on XP.

Any ideas?

Thanks!

itsme213 wrote:

I was using dev-utils/debug breakpoint with ^D (EOF) to resume after the
breakpoint without any problem with the not-yet-final release of Ruby 1.8.2
(from late 2004).

First of all: This is outdated. There's now a stand-alone ruby-breakpoint which you can get via RubyGems or from http://ruby-breakpoint.rubyforge.org/

I just upgraded to the final 1.8.2 (1-click installer)
   ruby 1.8.2 (2004-12-25) [i386-mswin32]
and the ^D processing seems to not work.

It seems ^D get no response from IRB *when* inside a breakpoint. If I
directly start up IRB then ^D seems to work fine.

The encouraged way of resuming the application is and will be using the 'exit' command. Note that this will not terminate the whole application. That's what Kernel.exit or exit! do.

Blind trial-and-error revealed that ^Z followed by a <Enter> seems to signal
EOF when in a breakpoint.

AFAIK Windows has always used ^Z as the end-of-input character. I'm not sure why it is like this, but it seems to be common behavior.

"Florian Gross" <flgr@ccan.de> wrote in message

First of all: This is outdated. There's now a stand-alone
ruby-breakpoint which you can get via RubyGems or from
http://ruby-breakpoint.rubyforge.org/

That was it. Both 'exit' and ^Z<Ret> work from a breakpoint/irb.

Just fyi, regular irb still picks up ^D (and not ^Z).

Thanks.

itsme213 wrote:

Just fyi, regular irb still picks up ^D (and not ^Z).

Hm, mine does not seem to do it:

irb(main):001:0> [RUBY_VERSION, RUBY_PLATFORM, RUBY_RELEASE_DATE]
=> ["1.8.2", "i386-mswin32", "2004-12-25"]
irb(main):002:0> ^D
=> nil
irb(main):003:0* 1+1
=> 2
irb(main):004:0> ^Z

Ah, that part was apparently due to my shell (not the standard command.com).
`
"Florian Gross" <flgr@ccan.de> wrote in message
news:3asuq5F6c3dgqU1@individual.net...

···

itsme213 wrote:

> Just fyi, regular irb still picks up ^D (and not ^Z).

Hm, mine does not seem to do it:

irb(main):001:0> [RUBY_VERSION, RUBY_PLATFORM, RUBY_RELEASE_DATE]
=> ["1.8.2", "i386-mswin32", "2004-12-25"]
irb(main):002:0> ^D
=> nil
irb(main):003:0* 1+1
=> 2
irb(main):004:0> ^Z