學習
引擎資料庫
debug

*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡


概要

API 參考
函式
traceback
debug.traceback(
message:string, level:number
參數
message:string
level:number
預設值:1
返回

traceback
debug.traceback(
thread:coroutine, message:string, level:number
參數
thread:coroutine
message:string
level:number
預設值:1
返回

info
debug.info(
level:number, options:string
參數
level:number
options:string
返回

info
debug.info(
function:function, options:string
參數
function:function
options:string
返回

info
debug.info(
thread:coroutine, level:number, options:string
參數
thread:coroutine
level:number
options:string
返回

profilebegin
debug.profilebegin(label:string):()
參數
label:string
返回
()

profileend
debug.profileend():()
返回
()

getmemorycategory
debug.getmemorycategory():string
返回

setmemorycategory
debug.setmemorycategory(tag:string):string
參數
tag:string
返回

resetmemorycategory
debug.resetmemorycategory():()
返回
()

dumpcodesize
debug.dumpcodesize():()
返回
()

©2026 Roblox Corporation、Roblox、Roblox 標誌及 Powering Imagination 是我們在美國及其他國家地區的部分註冊與未註冊商標。