Break points IN ruby code?

I’ve been having trouble setting break points in certain ruby constructs
when debugging. Is there a way in Ruby to cause program being run -rdebug
to manually issue a break so as to return control to the debugger at the
point I need it? (If not, I think this would be a great feature for a
future release of Ruby, IMHO.)

Thanks!

Ken.

Finally a(nother) good use for a continuation :slight_smile:

-Martin

···

On Wed, May 12, 2004 at 12:53:53AM +0900, Ken Hilton wrote:

(…) Is there a way in Ruby to cause program being run -rdebug
to manually issue a break so as to return control to the debugger at the
point I need it? (…)

More precisely, break points set in certain constructs fail to be triggered,
e.g., a block attached to a method call, or break point set on a line in a
file that’s required but has yet to loaded via its require ‘’ statement.
Hope that helps.

Ken.

“Ken Hilton” kenosis@comcast.net wrote in message
news:nF6oc.71767$Ik.5202570@attbi_s53…

···

I’ve been having trouble setting break points in certain ruby constructs
when debugging. Is there a way in Ruby to cause program being run -rdebug
to manually issue a break so as to return control to the debugger at the
point I need it? (If not, I think this would be a great feature for a
future release of Ruby, IMHO.)

Thanks!

Ken.

Ok, clue me in. What pray-tell is a “continuation”??? :slight_smile:

Ken.

“Martin Weber” Ephaeton@gmx.net wrote in message
news:20040511160405.GM11844@phaeton.entropie.net

···

On Wed, May 12, 2004 at 12:53:53AM +0900, Ken Hilton wrote:

(…) Is there a way in Ruby to cause program being run -rdebug
to manually issue a break so as to return control to the debugger at the
point I need it? (…)

Finally a(nother) good use for a continuation :slight_smile:

-Martin

Can you please elaborate? The docs on continuation/callcc are pretty
opaque.

Thx,

Ken.

“Martin Weber” Ephaeton@gmx.net wrote in message
news:20040511160405.GM11844@phaeton.entropie.net

···

On Wed, May 12, 2004 at 12:53:53AM +0900, Ken Hilton wrote:

(…) Is there a way in Ruby to cause program being run -rdebug
to manually issue a break so as to return control to the debugger at the
point I need it? (…)

Finally a(nother) good use for a continuation :slight_smile:

-Martin

Ken Hilton wrote:

Ok, clue me in. What pray-tell is a “continuation”??? :slight_smile:

Ken.

“Martin Weber” Ephaeton@gmx.net wrote in message
news:20040511160405.GM11844@phaeton.entropie.net

(…) Is there a way in Ruby to cause program being run -rdebug
to manually issue a break so as to return control to the debugger at the
point I need it? (…)

Finally a(nother) good use for a continuation :slight_smile:

-Martin

This was recently discussed on this mailing list. If you search the
archives for “what is borges?” then you’ll find some usefull links to
discussions about continuations

HTH

···

On Wed, May 12, 2004 at 12:53:53AM +0900, Ken Hilton wrote:


Mark Sparshatt