Aprenda
Biblioteca do mecanismo
debug

*Este conteúdo é traduzido por IA (Beta) e pode conter erros. Para ver a página em inglês, clique aqui.


Resumo
Funções
traceback(message: string,level: number):string
traceback(thread: coroutine,message: string,level: number):string
info(level: number,options: string):Tuple
info(function: function,options: string):Tuple
info(thread: coroutine,level: number,options: string):Tuple
profilebegin(label: string):()

Referência API
Funções
traceback
debug.traceback(
message:string, level:number
Parâmetros
message:string
level:number
Valor Padrão: 1
Devolução

traceback
debug.traceback(
thread:coroutine, message:string, level:number
Parâmetros
thread:coroutine
message:string
level:number
Valor Padrão: 1
Devolução

info
debug.info(
level:number, options:string
Parâmetros
level:number
options:string
Devolução

info
debug.info(
function:function, options:string
Parâmetros
function:function
options:string
Devolução

info
debug.info(
thread:coroutine, level:number, options:string
Parâmetros
thread:coroutine
level:number
options:string
Devolução

profilebegin
debug.profilebegin(label:string):()
Parâmetros
label:string
Devolução
()

profileend
debug.profileend():()
Devolução
()

getmemorycategory
debug.getmemorycategory():string
Devolução

setmemorycategory
debug.setmemorycategory(tag:string):string
Parâmetros
tag:string
Devolução

resetmemorycategory
debug.resetmemorycategory():()
Devolução
()

dumpcodesize
debug.dumpcodesize():()
Devolução
()

©2026 Roblox Corporation, Roblox, o logotipo Roblox e Powering Imagination estão entre nossas marcas registradas e não registradas nos EUA e em outros países.