From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada Community and GDB/Python problems Date: Sat, 8 Feb 2020 07:19:28 +0100 Organization: Adalog Message-ID: References: <4cc63bc8-ff8a-4f9e-8649-4e50d7448674@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 8 Feb 2020 06:19:28 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="2c56a3148f3954515ba41cc5ee5a97f2"; logging-data="12753"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ta6PWEzBNgXvT5IzXjJoT" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 Cancel-Lock: sha1:X0bWy29tTqf9/gMVwJhxN4mkyis= In-Reply-To: <4cc63bc8-ff8a-4f9e-8649-4e50d7448674@googlegroups.com> Content-Language: fr Xref: reader01.eternal-september.org comp.lang.ada:58010 Date: 2020-02-08T07:19:28+01:00 List-Id: Le 07/02/2020 à 23:39, joakimds@kth.se a écrit : > I would recommend tracing to "debug" what your application is doing > (either print messages to standard out or logging to a file). In a > multi-task application I've preferred tracing for a long time over > stepping through code using a debugger like gdb. I agree, I use tracing every day, and gdb no more than 2-3 times a year. Not that there is any problem with gdb, but (at least for my kind of debugging), I find tracing more efficient. Especially if you are using multiple tasks, I recommend the "Debug" package that you can get (free) from http://adalog.fr/en/components.html#Debug Among other things, it shows task switches and allows you to trace protected calls (reminder: you are not allowed to print from within a protected operation). -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr