Tracing

from Wikipedia, the free encyclopedia

The trace (English tracing in) refers to programming a function for analyzing programs or for troubleshooting in them. It is a cross-cutting concern .

It is z. B. A message is output each time a function is entered and exited so that the programmer can see when and from where which function is called. The messages can also contain the arguments to the function.

When programming in assembly language , the sequence control (tracer) offers the option of executing the machine instructions individually and monitoring the registers , the stack , memory dumps or specific memory locations.

Together with other diagnostic outputs, the program sequence of a faulty program can often be traced very quickly back to the function causing the error.

In multithreading environments, tracing is more helpful than debugging with the setting of breakpoints , since the current thread is not stopped, which would otherwise lead to the context being corrupted and the program error being sought. It may not be able to be reproduced as desired.

See also

Individual evidence

  1. 8088 Assembler and Tracer Toolkit. Donald Bren School of Information & Computer Sciences, accessed August 7, 2019 .
  2. ^ Oasis Software (Ed.): Machine Lightning (manual) . C64 assembler. S. 2 (English).