# debug

### stack_depth() <sub>function</sub>

Return the current stack depth.



**Returns**: A number representing the stack depth.


### build_backtrace() <sub>function</sub>

Build and return a backtrace of the current call stack.



**Returns**: An object representing the call stack backtrace.


### closure_vars(fn) <sub>function</sub>

Return the closure variables for a given function.



**fn**: The function object to inspect.


**Returns**: An object containing the closure variables.


### local_vars(depth) <sub>function</sub>

Return the local variables for a specific stack frame.



**depth**: The stack frame depth to inspect.


**Returns**: An object containing the local variables at the specified depth.


### fn_info(fn) <sub>function</sub>

Return metadata about a given function.



**fn**: The function object to inspect.


**Returns**: An object with metadata about the function.


### backtrace_fns() <sub>function</sub>

Return an array of functions in the current backtrace.



**Returns**: An array of function objects from the call stack.


### dump_obj(obj) <sub>function</sub>

Return a string representation of a given object.



**obj**: The object to dump.


**Returns**: A string describing the object's contents.

