get_debugger_state
Retrieves the current debugger state—paused status, pause reason, hit breakpoints, and full call stack—to help inspect and diagnose paused JavaScript execution.
Instructions
Get the debugger state: whether execution is paused, the pause reason, hit breakpoints and the full call stack. A pause is reported whatever caused it. hitBreakpoints lists only breakpoints set through this server, so it is empty at a breakpoint set in DevTools. Positions are 1-based, and source-mapped where the script has a source map. A source-mapped frame also gives compiledUrl/compiledLine/compiledColumn, its position in the loaded script.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| paused | Yes | ||
| reason | No | Pause reason (e.g. "other" for a breakpoint, "step", "exception"). Present only when paused. | |
| callStack | No | Source-mapped positions when available. Present only when paused. | |
| hitBreakpoints | No | IDs of breakpoints hit. Present only when paused. | |
| droppedBreakpoints | No | Breakpoints set by `source` whose file has changed since: removed, and reported here once. |