Printing Simple Values in the Debugger Console

The variable value can also be printed in the debugger console, making it available for future operations. To print a variable value, select the desired variable by clicking mouse button 1 on its name. The variable name is copied to the argument field. By clicking the Print button, the value is printed in the debugger console. The printed value is also shown in the status line.

As a shorter alternative, you can simply press mouse button 3 on the variable name and select the Print item from the popup menu.

PICS/ddd-print-popup.jpg

In GDB, the Print button generates a print command, which has several more options. See Examining Data, for GDB-specific expressions, variables, and output formats.

Node:Displaying Values, Next:Plotting Values, Previous:Printing Values, Up:Examining Data

results matching ""

    No results matching ""