stack debug

The EXPORT function allows you to set or update a list of symbols which will be dumped upon script termination. This proves handy when debugging a script as you can visualize, even in the case of errors, the value of specific symbols.

The function expects either a symbol name (a STRING) which will be added to the current list of exported symbols, a list of symbol name which will replace the current list of exported symbols, an empty list to disable symbol export altogether, or a list with a single NULL element to instruct the WarpScript engine to export all existing symbols.

When symbols should be exported, the debug mode is implied (see DEBUGON).

EXPORT is available since version 1.0.2.

See also



[ 'foo' ] EXPORT 42 'foo' STORE