Skip to content
bergsma edited this page Sep 26, 2014 · 3 revisions

#debug

###Set or clear debug flags.

Syntax

prevFlags = debug[  flags ] ;

Arguments

  1. int flags(optional)

000x : turns off all debug flags 001x : display trace execution of tokens 002x : display varied diagnostics 004x : display tokens as they are parsed 008x : display the infix expression stack 00Fx : display postfix execution stack 010x : display the frame levels 020x : display the data stack 040x : display SECS data streams 080x : display parse state transitions 0F0x : display heap usage 100x : display SQL streams

Return Value

int prevFlags
  • 0 - 1023 : The previous debug flags.

The STATUS variable is set to $ACKNOWLEDGE

Warnings

  • %INVALID: The debug flags were invalid.

Exceptions

  • %ARGUMENT: Invalid arguments. Usage: prevFlags = debug[ flags ] ;

Description

The debug flags were created primarily to facilitate the creation on the HyperScript programming language by displaying the inner workings of the language as it parses and executes.

Examples

// Set all the debug levels and watch what happens with a simple statement.
status = 1 ;
debug 1023 ;
a = 100 ;
debug 0 ;

Related Links

None

Clone this wiki locally