debugライブラリ
ライブラリ日本語解説は準備中
ひとことで言うと
debugは、ロブロックス(Roblox)のライブラリです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):This library provides functions useful for debugging and profiling code.
関数(11)
| 名前と書き方 | 説明 |
|---|---|
tracebackdebug.traceback(message: string, level: number): string | Returns a string of undefined format that describes the current function call stack. |
tracebackdebug.traceback(thread: thread, message: string, level: number): string | Returns a string of undefined format that describes the current function call stack. |
infodebug.info(level: number, options: string): Tuple | Traverses the entire stack of current thread and returns a string containing the call stack of target level details. |
infodebug.info(function: function, options: string): Tuple | Traverses the entire stack of current thread and returns a string containing the call stack of target function details. |
infodebug.info(thread: thread, level: number, options: string): Tuple | Traverses the entire stack of target thread and returns a string containing the call stack of target level details. |
profilebegindebug.profilebegin(label: string): () | Starts profiling for a label. |
profileenddebug.profileend(): () | Stops profiling for the most recent label that Library.debug.profilebegin() opened. |
getmemorycategorydebug.getmemorycategory(): string | Returns the name of the current thread's active memory category. |
setmemorycategorydebug.setmemorycategory(tag: string): string | Assigns a custom tag to the current thread's memory category. |
resetmemorycategorydebug.resetmemorycategory(): () | Resets the tag assigned by Library.debug.setmemorycategory() to the automatically assigned value (typically, the script name). |
dumpcodesizedebug.dumpcodesize(): () | Displays a table of native code size of individual functions and scripts. |
英語の説明とメンバーの一覧は、Roblox Creator Documentation(debug)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。