Debugger
本页面介绍 Lynx DevTool 支持的 Debugger CDP domain。
实验性参考
此生成的参考文档仍在完善中。
- CDP events 尚未包含。
- 部分 Lynx 扩展已列出,但尚未提供详细文档。
- 方法说明尚未根据实现自动校验,可能不完整或不准确。
在依赖本参考前,请根据实现及所链接的 upstream CDP reference 验证实际行为。
概览
- 作用域:
instance - CDP domain:Debugger
标准方法
- Debugger.continueToLocation
- Debugger.disable
- Debugger.enable
- Debugger.evaluateOnCallFrame
- Debugger.getPossibleBreakpoints
- Debugger.getScriptSource
- Debugger.pause
- Debugger.removeBreakpoint
- Debugger.resume
- Debugger.setAsyncCallStackDepth
- Debugger.setBreakpoint
- Debugger.setBreakpointByUrl
- Debugger.setBreakpointsActive
- Debugger.setPauseOnExceptions
- Debugger.setSkipAllPauses
- Debugger.setVariableValue
- Debugger.stepInto
- Debugger.stepOut
- Debugger.stepOver
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:
Response: