Marcello90
Marcello90

Reputation: 1343

Tracing execution of an Ada program

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

Answers (1)

DeeDee
DeeDee

Reputation: 5941

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

Upvotes: 4

Related Questions