[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

dev-utils/debug question

Its Me

11/16/2004 3:40:00 PM

Two questions:

- Can explicit breakpoints be leveraged to incrementally patch fixes/changes
into a running app (during debugging)

- Can it be extended to take an external interrupt of some kind and enter a
breakpoint?

So far breakpoint has made my working in JEdit without a debugger pretty
bearable ! thanks a whole bunch, gavin!!

[does anyone have jedit working with ruby debugging?]



3 Answers

Florian Gross

11/16/2004 3:48:00 PM

0

itsme213 wrote:

> Two questions:
>
> - Can explicit breakpoints be leveraged to incrementally patch fixes/changes
> into a running app (during debugging)

Sure thing, after all you have a full-fledged irb shell and you can
replace methods using it.

> - Can it be extended to take an external interrupt of some kind and enter a
> breakpoint?

Yup, though it will be a bit harder to get it to run in a specific
context. I guess something like trap("SIGUSR1") { breakpoint } might do
the trick.

Gavin Sinclair

11/16/2004 11:29:00 PM

0

On Wednesday, November 17, 2004, 2:43:18 AM, itsme213 wrote:

> Two questions:

> - Can explicit breakpoints be leveraged to incrementally patch fixes/changes
> into a running app (during debugging)

> - Can it be extended to take an external interrupt of some kind and enter a
> breakpoint?

Florian answered these, but were you thinking of any particular way
dev-utils could be enhanced?

Gavin






Its Me

11/17/2004 1:20:00 AM

0

> Florian answered these, but were you thinking of any particular way
> dev-utils could be enhanced?

Being able to interrupt a running program and drop into an irb/breakpoint
session would be nice.

Even nicer would be to have a mode whose possible values include
DBG_ON_BREAKPOINT: in that mode the "breakpoint" (whether hand-inserted or
by interrupt) drops into a ruby debugger session, not just irb. Any chance
of that?