所有版本 v0.1.1127 八月 2026开发者工具 订阅

版本说明以英文撰写。

DevTools Debugger: real `debugger;` breakpoints at the VM

The DevTools protocol grows a Debugger domain. Until now the engine's CDP subset could inspect and drive the page (Runtime, DOM, CSS, accessibility) but had no debugger at all. It now has a real one for the breakpoint that needs no source-line bookkeeping: the `debugger;` statement. When the domain is enabled, hitting a `debugger;` captures the actual pause state from the running engine - the current function name and the live scope chain, every local and block variable with its real value at that instant - reachable through the CDP Debugger methods and a small native bridge. It is an honest slice: there is still no WebSocket event transport (a pause is polled, not pushed), no line-number breakpoints (that needs source-to-bytecode mapping) and no stepping - but the pause it reports is real VM state, not a mock, and `debugger;` is now a zero-cost no-op when the domain is off. DevTools moves 20 to 22; overall holds at 51 (the full debugger floor - transport, line breakpoints, stepping - is not yet done).

改动内容

3 项改动
  1. 开发者工具A real `debugger;` breakpoint: the statement is now parsed and compiled to a VM instruction that, when the Debugger domain is enabled, captures the current call frame name and the live scope chain (each Env frame up to the function boundary) with every variable's actual value at the pause - deterministic (scope keys sorted). Bare `debugger` only: `debugger.x` / `{debugger: 1}` stay ordinary identifiers, and `debugger;` is a zero-cost no-op when the domain is off.
  2. 开发者工具Exposed two ways: the CDP `Debugger.enable` / `Debugger.disable` / `Debugger.resume` / `Debugger.getPausedState` methods (a polled paused-state subset, since there is no WebSocket event transport yet), and a `__debug_*` native bridge (enable, paused, hits, resume) the tests and tooling drive directly.
  3. 开发者工具Honest scope: DevTools 20 -> 22 for a real Debugger-domain slice, but overall HOLDS at 51 because the full named floor is not done - no WebSocket CDP transport, no source-line breakpoints (needs a line-to-bytecode map), no single-stepping. 5 property tests (frame + scope capture, disabled no-op, resume, hit counting, property-name safety, CDP parity), conformance gate 6375/6375 with native-JIT and no-nanbox green.
v0.1.112 之后的所有内容,集中在一处

版本

v0.1.0 - 0.1.9 · 10 七月 2026418v0.1.427 · 25 十一月 2026