Reputation: 1343
Does Ada/GNAT supports something like the automatic tracing of the execution of a program (or selected packages/procedures/functions) for debug purposes? I am not interested in a logger package.
Imagine working on a real old Ada project and using a debugger to step through the code is not an option. In my opinion adding text outputs often helps to understand the code:
if A and B or C then
Ada.Text_IO.Put_Line ("1");
[...]
else
Ada.Text_IO.Put_Line ("2");
[...]
end if;
But adding such text outputs is a manual process and it takes time to do it on complex code.
Upvotes: 3
Views: 223