Examining Data
DDD provides several means to examine data.
The quickest way to examine variables is to move the pointer on an occurrence in the source text. The value is displayed in the source line; after a second, a popup window (called
Illegal HTML tag removed : value tip
) shows the variable value. This is useful for quick examination of several simple values.
If you want to refer to variable values at a later time, you can
Illegal HTML tag removed : print
the value in the debugger console. This allows for displaying and examining larger data structures.
If you want to examine complex data structures, you can
Illegal HTML tag removed : display
them graphically in the data window. Displays remain effective until you delete them; they are updated each time the program stops. This is useful for large dynamic structures.
If you want to examine arrays of numeric values, you can
Illegal HTML tag removed : plot
them graphically in a separate plot window. The plot is updated each time the program stops. This is useful for large numeric arrays.
Using GDB or DBX, you can also
Illegal HTML tag removed : examine memory contents
in any of several formats, independently of your program's data types.
Value Tips: Just move the pointer on a variable.
- Printing Values: Printing a value in the debugger console.
- Displaying Values: Displaying structures as graphs.
- Plotting Values: Displaying values as plots.
- Examining Memory: Low-level memory examination.
Node:Value Tips, Next:Printing Values, Up:Examining Data