Tracing execution of an Ada program

Viewed 121

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.

1 Answers

You might want to have a look at rr. I've never used it myself, but it might very well work with Ada.

Related