[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #59169] Add a --debug=why category for the -d/--debug option

From: David Boyce
Subject: [bug #59169] Add a --debug=why category for the -d/--debug option
Date: Tue, 22 Sep 2020 22:22:37 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36


                 Summary: Add a --debug=why category for the -d/--debug option
                 Project: make
            Submitted by: boyski
            Submitted on: Wed 23 Sep 2020 02:22:35 AM UTC
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.3
        Operating System: None
           Fixed Release: None
           Triage Status: None



This simple patch adds a --debug=why category to print the contents of $? for
every recipe invoked. Extremely similar to --trace and in fact it piggybacks
off the same code, the only difference being that it doesn't force the recipe
to be printed like --trace does.

Implemented because I find the ability to print $? quite useful but don't want
to have to print the recipe too, and --trace per se cannot be changed

In my day job we have many recipes up to thousands of characters long so we
generally silence them and print only "$(info Making $@)" by default. This
makes --trace sub-optimal for us as it stands.

In fact I wonder why --trace was implemented as a standalone flag instead of a
--debug category? I'm sure there was a reason but I can't think of what it
might be. If it was up to me I'd consider implementing both --debug=trace and
--debug=why and documenting --trace as just an alias of --debug=trace.

This needs a doc patch and so on but I'm ignoring those unless/until this idea
is accepted.


File Attachments:

Date: Wed 23 Sep 2020 02:22:35 AM UTC  Name: why.patch  Size: 1KiB   By:



Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]