debug

Show Deprecated

Provides a few basic functions for debugging code in Roblox. Unlike the debug library found in Lua natively, this version has been heavily sandboxed. Roblox does, however, have debugging functionality similar to Lua's native debugging functionality (see the Class.DebuggerManager class).

Summary

Functions

traceback(message: string, level: number): string  

traceback(thread: thread, message: string, level: number): string  

info(thread: thread, level: number, options: string): Tuple  

info(function: function, options: string): Tuple  

info(level: number, options: string): Tuple  

profilebegin(label: string): void  

profileend(): void  

setmemorycategory(tag: string): void  

Functions

traceback

Parameters

message: string
level: number
Default Value: 1

Returns

Code Samples


traceback

Parameters

thread: thread
message: string
level: number
Default Value: 1

Returns

info

Parameters

thread: thread
level: number
options: string

Returns

info

Parameters

function: function
options: string

Returns

info

Parameters

level: number
options: string

Returns

profilebegin

void

Parameters

label: string

Returns

void

profileend

void

Returns

void

setmemorycategory

void

Parameters

tag: string

Returns

void

resetmemorycategory

void

Returns

void