For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/cdp/api-ref/debugger.md.
Lynx
  • 简体中文
  • Debugger

    本页面介绍 Lynx DevTool 支持的 Debugger CDP domain。

    实验性参考

    此生成的参考文档仍在完善中。

    • CDP events 尚未包含。
    • 部分 Lynx 扩展已列出,但尚未提供详细文档。
    • 方法说明尚未根据实现自动校验,可能不完整或不准确。

    在依赖本参考前,请根据实现及所链接的 upstream CDP reference 验证实际行为。

    概览

    • 作用域:instance
    • CDP domain:Debugger

    标准方法

    Lynx 扩展

    Debugger.stopAtEntry

    Pauses PrimJS execution at the next available statement.

    • Origin: lynx-extension
    • Source: third_party/quickjs/src/src/inspector/protocols.cc
    参数

    无参数。

    返回字段

    无返回字段。

    事件
    • Debugger.paused
    备注
    • 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.
    示例

    Pause at entry

    Request:

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

    Response:

    {
      "method": "Debugger.paused",
      "params": {
        "reason": "stopAtEntry"
      }
    }
    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。