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
Type | Name | Comment |
INTEGER | firstStackLevel | Â |
INTEGER | numberOfStackLevels | Â |
STRING | outputFileName | The full path to the output file |
INTEGER | options | A 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
1 | Option | Comment |
2 | XPXPRINT_LOCAL_VARIABLES | Print all local variables for each stack level. |
3 | XPXPRINT_FUNCTIONS_ARGUMENTS | Print function/procedure arguments for each stack level. |
4 | XPXPRINT_CONSTANTS | Print constants for each stack level and global constants. |
5 | XPXPRINT_GLOBAL_VARIABLES | Print global variables. |
6 | XPXPRINT_ALL_STACK_LEVELS | Print all stack levels. |
7 | XPXPRINT_STACK_ASCENDING | Print ascending, i.e. from bottom towards top. |
8 | XPXPRINT_STACK_DESCENDING | Print descending (default). |
9 | XPXPRINT_CURRENT_STACK_LEVEL | Print current stack level. |
10 | XPXPRINT_TO_FILE | Print 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.
Â