Code Tracing

Related Topics:

Setting Up a Trace Breakpoints Window
Dbx Commands Window

Tracing collects information about what is happening in your program and displays it in the Dbx Commands window. Program execution does not stop.

A trace displays each line of source code as it is about to be executed. In all but the simplest programs, this trace produces volumes of output.

A more useful trace applies a filter to display information about events in your program. For example, you can trace each call to a function, every member function of a given name, every function in a class, or each exit from a function. You can also trace changes to a variable.

An event is the association of a program event with a debugging action. A typical event is a change in the value of a specified variable. A handler manages debugging events. The trace listing in the Breakpoints window is called a trace handler because it manages the trace, a type of event.