# debug(ロブロックス ライブラリ) > This library provides functions useful for debugging and profiling code. - URL:https://roblox.minecraft-okinawa.com/reference/libraries/debug/ - 公式:https://create.roblox.com/docs/reference/engine/libraries/debug ## 関数 - `debug.traceback(message: string, level: number): string`:Returns a string of undefined format that describes the current function call stack. - `debug.traceback(thread: thread, message: string, level: number): string`:Returns a string of undefined format that describes the current function call stack. - `debug.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. - `debug.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. - `debug.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. - `debug.profilebegin(label: string): ()`:Starts profiling for a label. - `debug.profileend(): ()`:Stops profiling for the most recent label that Library.debug.profilebegin() opened. - `debug.getmemorycategory(): string`:Returns the name of the current thread's active memory category. - `debug.setmemorycategory(tag: string): string`:Assigns a custom tag to the current thread's memory category. - `debug.resetmemorycategory(): ()`:Resets the tag assigned by Library.debug.setmemorycategory() to the automatically assigned value (typically, the script name). - `debug.dumpcodesize(): ()`:Displays a table of native code size of individual functions and scripts. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)