# debug.nas -- debugging helpers #------------------------------------------------------------------------------ # # debug.color(); ... turns terminal colors on (1) or off (0) # # debug.dump() ... dumps contents of variable to terminal; # abbreviation for print(debug.string(v)) # # debug.local([]) ... dump local variables of current # or given frame # # debug.backtrace([]} ... writes backtrace with local variables # (similar to gdb's "bt full) # # debug.tree([ [, ]) ... dump property tree under property path # or props.Node hash (default: root). If # is unset or 0, use flat mode # (similar to props.dump()), otherwise # use space indentation # # debug.exit() ... exits fgfs # # debug.bt ... abbreviation for debug.backtrace # # debug.string() ... returns contents of variable as string # # debug.load_xml_nasal() ... load and run XML embedded Nasal # # debug.benchmark(, []) # ... calls function with optional args and # prints execution time in seconds, # prefixed with