# ScriptDebuggerService(ロブロックス クラス) > Provides programmatic breakpoint management, execution control, and runtime inspection of Luau scripts during a playtest. - URL:https://roblox.minecraft-okinawa.com/reference/classes/ScriptDebuggerService/ - 公式:https://create.roblox.com/docs/reference/engine/classes/ScriptDebuggerService - 受け継いでいるクラス:Instance ## メソッド - `ScriptDebuggerService:AddBreakpoint(scriptInstance: LuaSourceContainer, breakpoint: Dictionary): ScriptBreakpointResult`:Adds a breakpoint to a script. If a breakpoint already exists on the same script and line, its data is replaced. - `ScriptDebuggerService:ClearBreakpoints(): ()`:Removes all breakpoints across all scripts. - `ScriptDebuggerService:Evaluate(expression: string, frameId: int?): ScriptEvaluateResult`:Evaluates a Luau expression in a stack frame's context. - `ScriptDebuggerService:GetRootVariables(frameId: int): List`:Returns the root variables (locals, upvalues, globals) for a stack frame. - `ScriptDebuggerService:GetStackTrace(threadId: int, startFrame: int?): DebugStackTraceResult`:Returns the call stack for a paused thread. - `ScriptDebuggerService:GetThreads(): List`:Returns all paused Luau threads. - `ScriptDebuggerService:GetVariables(variablesReference: int): List`:Drills into structured variables (tables, Class.Instance|Instances). - `ScriptDebuggerService:Pause(): ()`:Requests the debugger to pause at the next safe point. - `ScriptDebuggerService:RemoveBreakpoint(scriptInstance: LuaSourceContainer, line: int): boolean`:Removes the breakpoint on the given script and line. - `ScriptDebuggerService:SetExceptionBreakMode(breakMode: DebugBreakModeType): ()`:Controls when the debugger pauses on exceptions. ## イベント - `ScriptDebuggerService.Resumed(threadIds: Array)`:Fires when a previously paused thread resumes execution. ## コールバック - `ScriptDebuggerService:OnStopped(stopped: Dictionary): ScriptResumeAction`:The primary callback for reacting to debugger pauses. Returns a resume action. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)