Lynx

Debugger

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

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

Standard Methods

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:

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

Response:

{
  "method": "Debugger.paused",
  "params": {
    "reason": "stopAtEntry"
  }
}
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.