From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Rod Kay Newsgroups: comp.lang.ada Subject: Re: Extra information in the message string of exceptions. Date: Tue, 7 Jun 2022 21:26:35 +1000 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 7 Jun 2022 11:29:42 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="3132443202e2650422bf11ef5d6e8d7c"; logging-data="5490"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+OfH7KBJf9QIBY3Ugf/WMRllPaqTAbijo=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cancel-Lock: sha1:U8BXZVa1gDJfzM107REOsGj+im4= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:63944 List-Id: On 6/6/22 23:40, Fabien Chouteau wrote: > > That's a really good idea I would say. Extremely useful during development where I often start the debugger just to know what value triggered a Constraint_Error. Starting gdb and adding 'put_Line's often is what prompted the thought :) . > I guess the drawback is performance as formatting string with extra information will have a cost. > But this feature could be activated with a switch only when needed. A compiler switch to be used during development and debugging sounds ideal.