# Debugger

Domain: `debugger`

CDP-based debugging domain covering breakpoints, stepping, call stacks, watches, and debugger sessions.

## Profiles

- workflow
- full

## Typical scenarios

- Set and hit breakpoints
- Evaluate expressions in frames
- Save and restore debugger sessions

## Common combinations

- debugger + hooks
- debugger + antidebug

## Full tool list (16)

| Tool | Description |
| --- | --- |
| `debugger_lifecycle` | Enable or disable the CDP debugger session. |
| `debugger_pause` | Pause execution at the next statement. |
| `debugger_resume` | Resume execution. |
| `debugger_step` | Step execution: into (enter next call), over (skip next call), out (exit current function). |
| `breakpoint` | Manage breakpoints: code (line/script), XHR (URL pattern), event listener, event category, and exception breakpoints. |
| `get_call_stack` | Get the current call stack. |
| `debugger_evaluate` | Evaluate a JavaScript expression. context="frame" evaluates in the current call frame (requires paused state); context="global" evaluates in the global context (no pause required). |
| `debugger_wait_for_paused` | Wait for debugger pause after setting breakpoints. |
| `debugger_get_paused_state` | Get current paused state and reason. |
| `get_object_properties` | Get properties of an object by objectId. |
| `get_scope_variables_enhanced` | Enhanced scope variable inspection with deep object traversal. |
| `debugger_session` | Manage debugger sessions. Actions: save (persist current session to file), load (restore session from file/JSON), export (export session as JSON string), list (list saved sessions in ./debugger-sessions/). |
| `watch` | Manage watch expressions for monitoring variable values during debugging. |
| `blackbox_add` | Blackbox scripts (skip during debugging) |
| `blackbox_add_common` | Blackbox all common libraries (one-click) |
| `blackbox_list` | List script blackbox patterns. |
