dbg_section

This function creates a section in the debug view last added with dbg_view and shows it in The Debug Overlay.

NOTE If no debug view is active then the section is added to a new debug view named "Default".

Usage Notes

 

Syntax:

dbg_section(name [, open]);

ArgumentTypeDescription
nameStringThe name of the new debug section
openBooleanOPTIONAL true if the section should be open when it's created, false if not (default is true)

 

Returns:

Debug Section Pointer

 

Example:

dbg_view("CustomDebugView");
dbg_section("Player Variables");

The code above creates a new debug view using dbg_view named "CustomDebugView" and adds a new section "Player Variables" to it using dbg_section.