Home  Contents

debug.dump

Debug Core4 Lua Commands

SYNOPSIS

str = debug.dump(type[, mode])

DESCRIPTION

Generic system call for querying debug information.

type specifies what to dump, e.g. 0x54 for debug.ps() or 0x4D for debug.free().

NOTES

The output is meant for printing on a terminal and contains VT100-like escape codes for formatting.
Never parse the output of this function programmatically. It is only meant for human consumption.

EXAMPLE

print(debug.dump(0x55))
#1 Atmel OHCI Root Hub (#C900000000000AFF) (Hub) (0mA, Self powered) Hub: power good, can source 1000mA, left 870mA 1: #2 SanDisk Cruzer Micro (#FFEAB11B4399693B) [0781:5151] (Storage) (100mA) 2: #3 Logitech WingMan Action Pad [046D:C20B] (Slow) (HID) (30mA)

SEE ALSO