> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Debugger

This page documents the `Debugger` CDP domain supported by Lynx DevTool.



:::warning Experimental reference
This generated reference is still being completed.

- CDP events are not included yet.
- Some Lynx extensions are listed but do not yet have detailed documentation.
- Method descriptions are not automatically verified against the implementation and may be incomplete or inaccurate.

Verify behavior against the implementation and the linked upstream CDP reference before relying on it.
:::

## Overview

- Scope: `instance`
- CDP domain: [Debugger](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/)

## Standard Methods

- [Debugger.continueToLocation](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-continueToLocation)
- [Debugger.disable](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-disable)
- [Debugger.enable](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-enable)
- [Debugger.evaluateOnCallFrame](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-evaluateOnCallFrame)
- [Debugger.getPossibleBreakpoints](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-getPossibleBreakpoints)
- [Debugger.getScriptSource](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-getScriptSource)
- [Debugger.pause](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-pause)
- [Debugger.removeBreakpoint](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-removeBreakpoint)
- [Debugger.resume](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-resume)
- [Debugger.setAsyncCallStackDepth](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setAsyncCallStackDepth)
- [Debugger.setBreakpoint](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBreakpoint)
- [Debugger.setBreakpointByUrl](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBreakpointByUrl)
- [Debugger.setBreakpointsActive](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setBreakpointsActive)
- [Debugger.setPauseOnExceptions](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setPauseOnExceptions)
- [Debugger.setSkipAllPauses](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setSkipAllPauses)
- [Debugger.setVariableValue](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-setVariableValue)
- [Debugger.stepInto](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-stepInto)
- [Debugger.stepOut](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-stepOut)
- [Debugger.stepOver](https://chromedevtools.github.io/devtools-protocol/tot/Debugger/#method-stepOver)

## Lynx Extensions

### `Debugger.stopAtEntry`

Pauses PrimJS execution at the next available statement.

- Origin: `lynx-extension`
- Source: `third_party/quickjs/src/src/inspector/protocols.cc`

###### Parameters

No parameters.

###### Returns

No return fields.

###### Events

- Debugger.paused

###### Notes

- This Lynx extension is implemented by the PrimJS inspector method map.
- The handler does not send a normal CDP response with id and result fields.
- The handler sends Debugger.paused through the pause-on-next-statement path. If no explicit pause reason is stored, the paused event uses stopAtEntry as the reason.
- V8 stop-at-entry behavior is controlled through the V8 Inspector integration and is not represented by this Lynx-extension method.

###### Examples

**Pause at entry**

Request:

```json
{
  "id": 1,
  "method": "Debugger.stopAtEntry"
}
```

Response:

```json
{
  "method": "Debugger.paused",
  "params": {
    "reason": "stopAtEntry"
  }
}
```

