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: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Intervention needed? Date: Wed, 03 Apr 2019 22:01:56 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="3352be630da3ad5d12c90afaa3beb70a"; logging-data="29480"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1842TZ6qrY0R3eVewQcEOw5qglPIziUTbk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cancel-Lock: sha1:J66VUSU0gJANJn/k8kg3NRvekrw= sha1:RFAAoIchgI+obZiQOZVEsgSBQCg= Xref: reader01.eternal-september.org comp.lang.ada:56065 Date: 2019-04-03T22:01:56+01:00 List-Id: Niklas Holsti writes: > I find, like Dmitry, that tracing and logging functions, either built > into the program and optionally activated, or inserted ad hoc to > understand a specific bug, are more useful. Even if the problem is not > found in the first attempt, but needs incremental addition or > activation of more or other logs and traces, the process is much less > frustrating than an interactive gdb session because there is much more > control, much less noise due to irrelevant outputs from the program > and the debugger, and no confusion between source level and machine > level. Agreed; in fact, we never managed to get GDB working on our VxWorks PowerPC hardware. I don't think we seriously tried. Logging was the thing (including exception tracebacks; unhandled exceptions were fatal, essential in the development environment) My part got tested on the desktop using a Tcl-based scripted testing tool[1], which meant that I could reproduce the scenario from the logs taken on site/at sea, demonstrate the problem, solve it (OK, sometimes using the debugger), demonstrate the cure, & add that script to the test suite. [1] https://sourceforge.net/projects/scriptedtesting.coldframe.p/ (I really need to rescue this from SF & move it to Github!)