DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
dbXtra and dbxtra

Printing the value of variables

After considering the line of code for a moment, you probably want to know the value of the variable cardsleft.

   (dbxtra) print cardsleft
   0
As suspected, the illegal instruction is the result of an attempt to divide by zero -- by way of the modulus operator -- but that is not the source of the problem. This variable should never have had a zero in it: we'll have to investigate why it did.


NOTE: Besides simple variables like cardsleft, dbxtra can also print the contents of aggregates such as arrays and structures. Aggregates can contain many elements, and the bottom window is not large enough to display them all. dbxtra provides simple paging by stopping the output when the window is full and displaying a highlighted prompt -- MORE --.


Next topic: Viewing source code and aliasing
Previous topic: The dbxtra help facility

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003