debugライブラリ

ライブラリ日本語解説は準備中

ひとことで言うと

debugは、ロブロックス(Roblox)のライブラリです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):This library provides functions useful for debugging and profiling code.

関数(11)

名前と書き方説明
traceback
debug.traceback(message: string, level: number): string
Returns a string of undefined format that describes the current function call stack.
traceback
debug.traceback(thread: thread, message: string, level: number): string
Returns a string of undefined format that describes the current function call stack.
info
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.
info
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.
info
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.
profilebegin
debug.profilebegin(label: string): ()
Starts profiling for a label.
profileend
debug.profileend(): ()
Stops profiling for the most recent label that Library.debug.profilebegin() opened.
getmemorycategory
debug.getmemorycategory(): string
Returns the name of the current thread's active memory category.
setmemorycategory
debug.setmemorycategory(tag: string): string
Assigns a custom tag to the current thread's memory category.
resetmemorycategory
debug.resetmemorycategory(): ()
Resets the tag assigned by Library.debug.setmemorycategory() to the automatically assigned value (typically, the script name).
dumpcodesize
debug.dumpcodesize(): ()
Displays a table of native code size of individual functions and scripts.

英語の説明とメンバーの一覧は、Roblox Creator Documentation(debug)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む