Quantcast

Debugging Boost Build problems

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Debugging Boost Build problems

Boost - Build mailing list
In an effort to debug Boost Build problems I create a branch of my own
from Boost Build and then add ECHO commands in jam source files whenever
I want to look at anything that is happening when executing b2. Is there
a better way ?

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Debugging Boost Build problems

Boost - Build mailing list
On Fri, Feb 17, 2017 at 3:03 PM, Edward Diener via Boost-build <[hidden email]> wrote:
In an effort to debug Boost Build problems I create a branch of my own from Boost Build and then add ECHO commands in jam source files whenever I want to look at anything that is happening when executing b2. Is there a better way ?

Steven wrote debugger support <https://github.com/boostorg/build/tree/debug>. Not sure what the state of it is. But you could give that a try.

PS. I also just add ECHO calls, without a branch though :-)


--
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Debugging Boost Build problems

Boost - Build mailing list
On the Jam side, I use ECHO statements as well.
 
I tend to make extensive use of
echo --------------------------------------------------------- ;
echo $(list-of-items:J=\n) ;
echo --------------------------------------------------------- ;
 
I would definitely take a look at Steven's debugger. It looked like it was making a lot of headway.
 
 
On the Python port, I use a typical Python debugger which works really well :)
 
Aaron

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Debugging Boost Build problems

Boost - Build mailing list
In reply to this post by Boost - Build mailing list
AMDG

On 02/17/2017 02:07 PM, Rene Rivera via Boost-build wrote:

> On Fri, Feb 17, 2017 at 3:03 PM, Edward Diener via Boost-build <
> [hidden email]> wrote:
>
>> In an effort to debug Boost Build problems I create a branch of my own
>> from Boost Build and then add ECHO commands in jam source files whenever I
>> want to look at anything that is happening when executing b2. Is there a
>> better way ?
>>
>
> Steven wrote debugger support <https://github.com/boostorg/build/tree/debug>.
> Not sure what the state of it is. But you could give that a try.
>

Basic usage should work without problems:
- Program execution: step/next/finish/continue
- Breakpoints: By line # or function name
- printing expressions
- help gives a list of commands (without explanation).
Not supported:
- examining variables in outer stack frames (Dynamic
  scope makes this really painful to implement.)
- editor/IDE support (I got it to work with Emacs
  GDB mode in the past, but this is currently broken).

The test case should exercise everything that's currently implemented:
https://github.com/boostorg/build/blob/debug/test/debugger.py

Also, it's been a while since I updated it, so it may
be out of sync with the current develop branch.

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Debugging Boost Build problems

Boost - Build mailing list
On 2/17/2017 5:17 PM, Steven Watanabe via Boost-build wrote:

> AMDG
>
> On 02/17/2017 02:07 PM, Rene Rivera via Boost-build wrote:
>> On Fri, Feb 17, 2017 at 3:03 PM, Edward Diener via Boost-build <
>> [hidden email]> wrote:
>>
>>> In an effort to debug Boost Build problems I create a branch of my own
>>> from Boost Build and then add ECHO commands in jam source files whenever I
>>> want to look at anything that is happening when executing b2. Is there a
>>> better way ?
>>>
>>
>> Steven wrote debugger support <https://github.com/boostorg/build/tree/debug>.
>> Not sure what the state of it is. But you could give that a try.
>>
>
> Basic usage should work without problems:
> - Program execution: step/next/finish/continue
> - Breakpoints: By line # or function name
> - printing expressions
> - help gives a list of commands (without explanation).

Do you mean 'b2 --help' ? Does not seem to tell me anything about your
debugger. How do I start your b2 debugger ?

> Not supported:
> - examining variables in outer stack frames (Dynamic
>   scope makes this really painful to implement.)
> - editor/IDE support (I got it to work with Emacs
>   GDB mode in the past, but this is currently broken).
>
> The test case should exercise everything that's currently implemented:
> https://github.com/boostorg/build/blob/debug/test/debugger.py
>
> Also, it's been a while since I updated it, so it may
> be out of sync with the current develop branch.
>
> In Christ,
> Steven Watanabe


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Debugging Boost Build problems

Boost - Build mailing list
AMDG

On 02/17/2017 10:18 PM, Edward Diener via Boost-build wrote:

>
>> Basic usage should work without problems:
>> - Program execution: step/next/finish/continue
>> - Breakpoints: By line # or function name
>> - printing expressions
>> - help gives a list of commands (without explanation).
>
> Do you mean 'b2 --help' ? Does not seem to tell me anything about your
> debugger. How do I start your b2 debugger ?
>

-dconsole

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Debugging Boost Build problems

Boost - Build mailing list
On 2/18/2017 9:16 AM, Steven Watanabe via Boost-build wrote:

> AMDG
>
> On 02/17/2017 10:18 PM, Edward Diener via Boost-build wrote:
>>
>>> Basic usage should work without problems:
>>> - Program execution: step/next/finish/continue
>>> - Breakpoints: By line # or function name
>>> - printing expressions
>>> - help gives a list of commands (without explanation).
>>
>> Do you mean 'b2 --help' ? Does not seem to tell me anything about your
>> debugger. How do I start your b2 debugger ?
>>
>
> -dconsole

Very neat ! Is there any practical reason your debugger cannot be part
of Boost Build, or at least Boost Build on the 'develop' branch ?

>
> In Christ,
> Steven Watanabe


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Debugging Boost Build problems

Boost - Build mailing list
AMDG

On 02/19/2017 10:29 AM, Edward Diener via Boost-build wrote:
>
> Very neat ! Is there any practical reason your debugger cannot be part
> of Boost Build, or at least Boost Build on the 'develop' branch ?
>

- No documentation
- I need to verify that it doesn't significantly
  impact performance when it isn't active

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Debugging Boost Build problems

Boost - Build mailing list
On 2/19/2017 12:52 PM, Steven Watanabe via Boost-build wrote:

> AMDG
>
> On 02/19/2017 10:29 AM, Edward Diener via Boost-build wrote:
>>
>> Very neat ! Is there any practical reason your debugger cannot be part
>> of Boost Build, or at least Boost Build on the 'develop' branch ?
>>
>
> - No documentation
> - I need to verify that it doesn't significantly
>   impact performance when it isn't active

Understood. The obvious problem with using it, if it is not integrated
with the 'develop' branch, is that it cannot be used to debug the latest
'develop' Boost Build code, which of course makes it much less useful.

>
> In Christ,
> Steven Watanabe


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Loading...