Namespace: crash
Language: Lua
Type: Defold Lua
File: script_crash.cpp
Source: engine/crash/src/script_crash.cpp
Native crash logging functions and constants.
Type: FUNCTION A table is returned containing the addresses of the call stack.
Parameters
handle (number) - crash dump handleReturns
backtrace (table) - table containing the backtraceType: FUNCTION The format of read text blob is platform specific and not guaranteed but can be useful for manual inspection.
Parameters
handle (number) - crash dump handleReturns
blob (string) - string with the platform specific dataType: FUNCTION The function returns a table containing entries with sub-tables that have fields ‘name’ and ‘address’ set for all loaded modules.
Parameters
handle (number) - crash dump handleReturns
modules (table) - module tableType: FUNCTION read signal number from a crash report
Parameters
handle (number) - crash dump handleReturns
signal (number) - signal numberType: FUNCTION reads a system field from a loaded crash dump
Parameters
handle (number) - crash dump handleindex (number) - system field enum. Must be less than crash.SYSFIELD_MAXReturns
value (string |
nil) - value recorded in the crash dump, or nil if it didn’t exist |
Type: FUNCTION reads user field from a loaded crash dump
Parameters
handle (number) - crash dump handleindex (number) - user data slot indexReturns
value (string) - user data value recorded in the crash dumpType: FUNCTION The crash dump will be removed from disk upon a successful load, so loading is one-shot.
Returns
handle (number |
nil) - handle to the loaded dump, or nil if no dump was found |
Type: FUNCTION releases a previously loaded crash dump
Parameters
handle (number) - handle to loaded crash dumpType: FUNCTION Crashes occuring before the path is set will be stored to a default engine location.
Parameters
path (string) - file path to useType: FUNCTION Store a user value that will get written to a crash dump when a crash occurs. This can be user id:s, breadcrumb data etc. There are 32 slots indexed from 0. Each slot stores at most 255 characters.
Parameters
index (number) - slot index. 0-indexedvalue (string) - string value to storeType: CONSTANT android build fingerprint
Type: CONSTANT system device language as reported by sys.get_sys_info
Type: CONSTANT device model as reported by sys.get_sys_info
Type: CONSTANT engine version as hash
Type: CONSTANT engine version as release number
Type: CONSTANT system language as reported by sys.get_sys_info
Type: CONSTANT device manufacturer as reported by sys.get_sys_info
Type: CONSTANT The max number of sysfields.
Type: CONSTANT system name as reported by sys.get_sys_info
Type: CONSTANT system version as reported by sys.get_sys_info
Type: CONSTANT system territory as reported by sys.get_sys_info
Type: CONSTANT The max number of user fields.
Type: CONSTANT The max size of a single user field.
Type: FUNCTION Performs the same steps as if a crash had just occured but allows the program to continue. The generated dump can be read by crash.load_previous