Skip to main content
Glama

Run Until Debug Stop or Exit

debug_run_to_stop
Destructive

Launch or attach to a target and run until the first stopped, exited, or terminated event, returning a bounded snapshot for deterministic runtime evidence.

Instructions

Run one live launch or attach through an already initialized DAP adapter until the first stopped, exited, or terminated event. Use this when you need deterministic runtime evidence from a reproduction; do not use it for a postmortem dump or when executing/attaching to the local target is not authorized. Launch mode executes application code and attach mode changes debugger control of an existing process, so normal target side effects may occur before the stop. Returns the request result, terminal/stopped outcome, session status, and a bounded snapshot only when a stopped event is captured.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestNoChoose launch to start a new target from configuration, or attach to connect to an existing authorized local target.launch
snapshotNoOptional bounds and evidence categories for the snapshot captured only when execution stops.
sessionIdNoOptional DAP session ID. Omit to use the backward-compatible default session.
timeoutMsNoMaximum milliseconds to wait for the first stopped, exited, or terminated event.
breakpointsNoOptional source breakpoint groups configured before the debugger completes launch/attach setup.
configurationYesAdapter-specific DAP launch or attach configuration.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
outcomeYes
requestYes
snapshotNo
requestResultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.17.0
    • addedInput schema / properties / sessionId
      Added value: +{
      +  "description": "Optional DAP session ID. Omit to use the backward-compatible default session.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "outcome": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "body": {},
      +        "event": {
      +          "enum": [
      +            "stopped",
      +            "exited",
      +            "terminated"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "event"
      +      ],
      +      "type": "object"
      +    },
      +    "request": {
      +      "enum": [
      +        "launch",
      +        "attach"
      +      ],
      +      "type": "string"
      +    },
      +    "requestResult": {},
      +    "snapshot": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "collectionErrors": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "message": {
      +                "type": "string"
      +              },
      +              "operation": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "operation",
      +              "message"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "disassembly": {
      +          "items": {},
      +          "type": "array"
      +        },
      +        "exception": {},
      +        "frame": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "column": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "id": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "line": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "source": {}
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "line",
      +            "column"
      +          ],
      +          "type": "object"
      +        },
      +        "locals": {
      +          "items": {},
      +          "type": "array"
      +        },
      +        "modules": {
      +          "items": {},
      +          "type": "array"
      +        },
      +        "postmortem": {
      +          "type": "boolean"
      +        },
      +        "registers": {
      +          "items": {},
      +          "type": "array"
      +        },
      +        "scopes": {
      +          "items": {},
      +          "type": "array"
      +        },
      +        "stack": {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "column": {
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              },
      +              "id": {
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              },
      +              "line": {
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              },
      +              "name": {
      +                "type": "string"
      +              },
      +              "source": {}
      +            },
      +            "required": [
      +              "id",
      +              "name",
      +              "line",
      +              "column"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "stopped": {},
      +        "symbolHealth": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "limitations": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "modules": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "collected": {
      +                  "type": "boolean"
      +                },
      +                "symbolsAvailable": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "symbolsMissing": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "symbolsUnknown": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "totalModules": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "withExplicitStatus": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "collected",
      +                "totalModules",
      +                "withExplicitStatus",
      +                "symbolsAvailable",
      +                "symbolsMissing",
      +                "symbolsUnknown"
      +              ],
      +              "type": "object"
      +            },
      +            "stack": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "namedFrames": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "sourceMappedFrames": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "topFrameNamed": {
      +                  "type": "boolean"
      +                },
      +                "topFrameSourceMapped": {
      +                  "type": "boolean"
      +                },
      +                "totalFrames": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "totalFrames",
      +                "namedFrames",
      +                "sourceMappedFrames",
      +                "topFrameNamed",
      +                "topFrameSourceMapped"
      +              ],
      +              "type": "object"
      +            },
      +            "status": {
      +              "enum": [
      +                "good",
      +                "partial",
      +                "poor",
      +                "unknown"
      +              ],
      +              "type": "string"
      +            },
      +            "summary": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "status",
      +            "summary",
      +            "stack",
      +            "modules",
      +            "limitations"
      +          ],
      +          "type": "object"
      +        },
      +        "thread": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "id": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "thread",
      +        "stack",
      +        "frame",
      +        "scopes",
      +        "locals",
      +        "registers",
      +        "symbolHealth"
      +      ],
      +      "type": "object"
      +    },
      +    "status": {}
      +  },
      +  "required": [
      +    "request",
      +    "requestResult",
      +    "outcome",
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. Changed17 schema fields changedv0.12.1
    • addedInput schema / properties / breakpoints / description
      Added value: +"Optional source breakpoint groups configured before the debugger completes launch/attach setup."
    • addedInput schema / properties / breakpoints / items / description
      Added value: +"Source file and line breakpoints applied before configuration completes."
    • addedInput schema / properties / breakpoints / items / properties / lines / description
      Added value: +"One or more 1-based source line numbers to replace as breakpoints for this source file."
    • changedInput schema / properties / breakpoints / items / properties / source / description
      Previous value: -"Absolute or adapter-resolvable source file path"New value: +"Absolute or adapter-resolvable source file path."
    • addedInput schema / properties / configuration / description
      Added value: +"Adapter-specific DAP launch or attach configuration."
    • addedInput schema / properties / request / description
      Added value: +"Choose launch to start a new target from configuration, or attach to connect to an existing authorized local target."
    • addedInput schema / properties / snapshot / description
      Added value: +"Optional bounds and evidence categories for the snapshot captured only when execution stops."
    • addedInput schema / properties / snapshot / properties / disassembleAfter / description
      Added value: +"Instructions after the selected instruction to request."
    • addedInput schema / properties / snapshot / properties / disassembleBefore / description
      Added value: +"Instructions before the selected instruction to request."
    • addedInput schema / properties / snapshot / properties / includeDisassembly / description
      Added value: +"Whether to include best-effort disassembly near the selected frame."
    • addedInput schema / properties / snapshot / properties / includeExceptionInfo / description
      Added value: +"Whether to request structured exception information after a stop."
    • addedInput schema / properties / snapshot / properties / includeModules / description
      Added value: +"Whether to include a bounded loaded-module list."
    • addedInput schema / properties / snapshot / properties / maxVariablesPerScope / description
      Added value: +"Maximum variables to return per inspected scope."
    • addedInput schema / properties / snapshot / properties / moduleCount / description
      Added value: +"Maximum loaded modules to include."
    • addedInput schema / properties / snapshot / properties / stackLevels / description
      Added value: +"Maximum stack frames to collect after a stop."
    • addedInput schema / properties / snapshot / properties / threadId / description
      Added value: +"Stopped thread to snapshot; omit to use the thread from the stopped event."
    • addedInput schema / properties / timeoutMs / description
      Added value: +"Maximum milliseconds to wait for the first stopped, exited, or terminated event."
  3. Addedv0.12.0

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

It discloses target side effects beyond what annotations state: 'normal target side effects may occur before the stop,' and it explains the difference between launch and attach behavior. It also sets a boundary on the snapshot ('bounded snapshot only when a stopped event is captured') and states the 'already initialized DAP adapter' prerequisite. This aligns with and enriches the destructiveHint=true annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, each earning its place: core action, selection guidance, side-effect warning, and return summary. The most important information is front-loaded before the exclusion and return-value details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 6 parameters, nested schema, and an output schema, the description covers the action, prerequisites, side effects, return categories, and exclusions. Missing details such as individual parameter bounds are already covered by the schema, so no critical selection or invocation context is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the schema already documents the parameters, so the baseline is 3. The description adds operational meaning for the request parameter (launch executes code, attach changes debugger control) and clarifies that snapshots are only produced on a stopped event, which is useful beyond the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ('Run one live launch or attach... until the first stopped, exited, or terminated event'), identifies the resource (already initialized DAP adapter), and scopes the use case to deterministic runtime evidence. It clearly contrasts with postmortem dumps, distinguishing it from sibling debug_open_dump.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says when to use ('when you need deterministic runtime evidence from a reproduction') and when not to use ('do not use it for a postmortem dump or when executing/attaching to the local target is not authorized'). It does not name a specific alternative tool, but the postmortem exclusion effectively routes the agent away from debug_open_dump.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SLP-DEV1/qwen-dap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server