เรียนรู้
ไลบรารีของ Engine
debug

*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่


สรุป
ฟังก์ชัน
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):()

เอกสารอ้างอิงเกี่ยวกับ 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 เป็นส่วนหนึ่งของเครื่องหมายการค้าที่จดทะเบียน และไม่ได้จดทะเบียนของเราในสหรัฐฯ และประเทศอื่นๆ