var debug = this

debug.stack_depth[cell.DOC] = `Return the current stack depth.

:return: A number representing the stack depth.
`

debug.build_backtrace[cell.DOC] = `Build and return a backtrace of the current call stack.

:return: An object representing the call stack backtrace.
`

debug.closure_vars[cell.DOC] = `Return the closure variables for a given function.

:param fn: The function object to inspect.
:return: An object containing the closure variables.
`

debug.local_vars[cell.DOC] = `Return the local variables for a specific stack frame.

:param depth: The stack frame depth to inspect.
:return: An object containing the local variables at the specified depth.
`

debug.fn_info[cell.DOC] = `Return metadata about a given function.

:param fn: The function object to inspect.
:return: An object with metadata about the function.
`

debug.backtrace_fns[cell.DOC] = `Return an array of functions in the current backtrace.

:return: An array of function objects from the call stack.
`

debug.dump[cell.DOC] = `Return a string representation of a given object.

:param obj: The object to dump.
:return: A string describing the object's contents.
`

return this
