xpxPrintStack

FUNCTION xpxPrintStack  (firstStackLevel     : INTEGER;
                         numberOfStackLevels : INTEGER;
                         outputFileName      : STRING;
                         options             : INTEGER) 
                         status              : INTEGER;

The xpxPrintStack function is normally used for debugging purposes. The execution stack in EDMexpressVM  will be dumped (written) to the specified file and/or standard out. That is, one or both of the options XPXPRINT_LOCAL_VARIABLES and XPXPRINT_TO_STDOUT must be applied in order to obtain any output at all. Please note that the bottom element of the stack is element number 1 and the top element has the number obtained from the xpfGetStackLevels function.

 

Arguments


TypeNameComment
INTEGERfirstStackLevel 
INTEGERnumberOfStackLevels 
STRINGoutputFileNameThe full path to the output file
INTEGERoptionsA bitwise OR of any of the following built in constants.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_XPX_Return_Value'.

Options


1OptionComment
2XPXPRINT_LOCAL_VARIABLESPrint all local variables for each stack level.
3XPXPRINT_FUNCTIONS_ARGUMENTSPrint function/procedure arguments for each stack level.
4XPXPRINT_CONSTANTSPrint constants for each stack level and global constants.
5XPXPRINT_GLOBAL_VARIABLESPrint global variables.
6XPXPRINT_ALL_STACK_LEVELSPrint all stack levels.
7XPXPRINT_STACK_ASCENDINGPrint ascending, i.e. from bottom towards top.
8XPXPRINT_STACK_DESCENDINGPrint descending (default).
9XPXPRINT_CURRENT_STACK_LEVELPrint current stack level.
10XPXPRINT_TO_FILEPrint to file.

 

Example


The following call will print all stack levels along with the corresponding local variables.

level = xpfGetStackLevels();
xpxPrintStack(level,level,??, XPXPRINT_LOCAL_VARIABLES~| XPXPRINT_TO_STDOUT);

 

See also

Filter by label

There are no items with the selected labels at this time.

Â