Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
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 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.
The argument <options>: A ?bitwise OR? of any of the following built in constants. (for instance XPXPRINT_GLOBAL_VARIABLES ~| XPXPRINT_ALL_STACK_LEVELS).
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. Please as well note that the XPXPRINT_ALL_STACK_LEVELS options means that all levels from the firstStackLevel to the end is printed.
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 related function xpfGetStackLevels
 

...

Option:

...

 

Arguments

...

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

Return Value

...

Insert excerpt
US:_r_XPX_Return_Value
US:_r_XPX_Return_Value
nopaneltrue

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

...

Code Block
languagecpp
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 (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "extension_schema" and parent = "5636522"