Boost logo

Boost-Build :

Subject: Re: [Boost-build] Debugger for Jam
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-03-22 00:00:33


On 03/21/2015 09:27 PM, Aaron Boman wrote:
> This looks awesome Steven!

I pushed to to the branch debug if you want
to try it out.

> On 3/21/2015 8:59 PM, Steven Watanabe wrote:
>> On 03/21/2015 07:43 PM, Ryan wrote:
>>> YESSSSSSSS!!!!! Boost.Build very much needs this!
>>> Will it pause on an error, like other debuggers?
>> It doesn't yet, but it will. It still needs
>> a lot of polishing. For now, you should be
>> able to use break EXIT.
> For the break on error, what are your thoughts on implementation?
> I'm working on the interactive interpreter using the implementation
> you've suggested and I've run into a similar issue where certain errors
> call exit().

   For the debugger, it's fairly straightforward.
It just needs a list of predefined breakpoints.
As a quick-and-dirty hack, for the interpreter,
you could replace EXIT with a rule that longjmps
back to the interpreter's main loop. What we really
need for this, though, is exception handling.
I know errors.jam has try and catch rules. You
might try those although they only suppress errors.
They don't actually unwind the stack.

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at