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

Viewing source code and aliasing

From the previous figure, it is clear that cardsleft must have been assigned a zero before line 60. To see the source code that did this, we have to scroll the source code window back.

   (dbxtra) backward 
The backward command scrolls the source window back one full window. To scroll the window forward to see again how cardsleft is used, we use the command forward.

Typing these screen motion commands in full each time is tedious, so dbxtra provides the alias command to rename commands. For example, to rename the backward command to b, for example, type:

   (dbxtra)  alias b backward
dbxtra provides a set of default aliases. To view them, type alias itself at the (dbxtra) prompt.

Having moved back one screen, we see that cardsleft is a parameter of Deal(). Therefore, to see how it was passed the value zero, we have to find out which function called it. This can be done by looking at the call stack.


Next topic: Viewing the call stack
Previous topic: Printing the value of variables

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