Repository navigation
Description
Summary
Add first-class V8 Inspector and Chrome DevTools Protocol (CDP) support to WebScene so JavaScript and React code running inside the native V8 engine can be discovered and debugged from Chrome DevTools and compatible IDEs.
Today, WebScene can execute JavaScript, capture V8 stack traces, queue console.log/warn/error output, report unhandled promise rejections, and evaluate code from the managed host. It cannot currently be attached to as a JavaScript debugging target because it does not create a v8_inspector::V8Inspector, expose an Inspector protocol session, host a CDP WebSocket, or publish a discoverable target.
This issue covers the complete path from the embedded V8 isolate to a working chrome://inspect session, including source-mapped breakpoints in original JSX.
Current behavior
WebScene currently provides diagnostic information but not an interactive debugger:
- synchronous JavaScript failures include a script resource name, generated line number, and V8 stack trace;
- script compilation uses a meaningful
v8::ScriptOrigindocument/resource name; console.log,console.warn, andconsole.errorare captured in a bounded native queue, includingError.stackwhen present;- unhandled promise rejections are detected and preserve their stack when available;
- managed hosts can evaluate JavaScript and receive failures through the native interop path;
- the Avalonia native view exposes
LastErrorandDrainConsoleMessages(); - the Uno native view exposes evaluation and render metrics, but does not currently expose equivalent public console/error APIs.
This is enough for logs and post-failure diagnosis, but not for IDE-grade source debugging. In particular, there is currently no support for:
- Chrome DevTools target discovery;
- an Inspector/CDP WebSocket connection;
Runtime.enableorDebugger.enablebacked by the actual WebScene V8 isolate;- source-level breakpoints;
- pause, resume, step into, step over, or step out;
- paused call frames, scopes, locals, watches, or
evaluateOnCallFrame; - pause-on-exception;
- CPU/heap profiling through V8 Inspector;
- mapping generated bundle locations back to original JSX through source maps.
Using the existing Chrome.DevTools.Protocol server by itself does not solve this. Its Avalonia/Uno Runtime and Debugger domains inspect or simulate the managed application and do not control WebScene's embedded V8 isolate.
Goal
Support the following development workflow:
-
Launch a WebScene application with an explicit inspector option, for example:
--webscene-inspect=127.0.0.1:9229 -
Open
chrome://inspect/#devicesin Chrome. -
Configure
localhost:9229as a network target. -
See the WebScene document as a discoverable target.
-
Click Inspect to open Chrome DevTools.
-
See loaded WebScene JavaScript in Sources.
-
Set a breakpoint in original JSX using a source map.
-
Interact with the native Avalonia or Uno application.
-
Pause inside the real V8 execution context.
-
Inspect call frames, scopes, local variables, and expressions.
-
Step and resume without blocking the UI or corrupting the WebScene worker lifecycle.
An optional break-on-start mode should also be supported:
--webscene-inspect-brk=127.0.0.1:9229
Recommended ownership and repository split
The V8 debugger implementation must be owned by WebScene because WebScene owns the V8 isolate, V8 contexts, navigation lifecycle, and native engine worker.
The existing wieslawsoltes/CDP repository can provide reusable HTTP discovery and WebSocket transport, but it must forward Inspector JSON unchanged. It should not reimplement V8 Runtime, Debugger, Profiler, or HeapProfiler semantics in managed code.
Recommended responsibility split:
| Responsibility | Owner |
|---|---|
V8Inspector, Inspector client, sessions, and context groups |
WebScene native engine |
| Pause loop, thread affinity, and inbound/outbound inspector queues | WebScene native engine |
| Native inspector ABI | WebScene |
| Managed native-ABI wrapper | WebScene |
/json discovery and WebSocket transport |
Lightweight CDP transport |
| WebScene target registration and transport adapter | WebScene integration package |
| Source-map generation | Consuming application/build |
| React component and hook inspection | Separate follow-up |
If the CDP repository is not used initially, WebScene may provide a minimal loopback-only discovery/WebSocket server for the first vertical slice. The long-term design should avoid maintaining two independent CDP transports.
Proposed architecture
Chrome DevTools / IDE JavaScript debugger
↕ CDP JSON over WebSocket
HTTP discovery + raw CDP transport
↕ unchanged protocol messages
WebScene managed inspector adapter
↕ native ABI queues and availability signals
WebScene native engine worker
↕ V8 thread/isolate/context affinity
v8_inspector::V8Inspector + V8InspectorSession
The native V8 Inspector must remain the source of truth for command responses, notifications, remote-object identifiers, script identifiers, breakpoints, call frames, profiler data, and debugger state.
Required implementation
1. Enable and link V8 Inspector
- Explicitly build the native runtime with V8 Inspector enabled and verify that the generated Inspector headers and implementation are present in the monolithic V8 artifact.
- Include
v8-inspector.hin the native engine target. - Add a focused Inspector implementation rather than expanding the already-large runtime translation unit without separation.
- Record the actual V8 and Inspector protocol versions in runtime metadata instead of advertising a hard-coded unrelated Chrome/V8 version.
2. Add the native Inspector client
Implement a v8_inspector::V8InspectorClient owned by the V8 isolate.
It must support at least:
runMessageLoopOnPause(int contextGroupId);quitMessageLoopOnPause();runIfWaitingForDebugger(int contextGroupId);- time/timer callbacks required by the Inspector version used by WebScene;
- console forwarding where needed;
- clean shutdown while a session is connected or paused.
Create the v8_inspector::V8Inspector only after the isolate is valid and destroy it before disposing the isolate.
3. Register V8 contexts correctly
- Assign a stable, non-zero Inspector context-group ID to each WebScene document/runtime.
- Call
contextCreated()for the root context after its embedder data and globals are installed. - Register iframe contexts as they are created.
- Give contexts meaningful names and origins based on the loaded WebScene URL/document.
- Call
contextDestroyed()before resetting each V8 context. - Call
resetContextGroup()when navigation replaces a document. - Ensure navigation cannot leave stale Inspector remote objects or context identifiers behind.
WebScene optionally supports shared isolates. Since V8Inspector is isolate-owned while sessions attach to context groups, shared-isolate mode needs explicit handling:
- MVP option: inspector mode requires a dedicated isolate and rejects/disables shared-isolate mode with a clear diagnostic;
- later option: one inspector per shared-isolate shard with distinct context groups and sessions for each WebScene runtime.
The MVP must not silently expose the wrong WebScene document when multiple runtimes share an isolate.
4. Add one Inspector session per debugger connection
Each connected DevTools/IDE client should receive its own V8InspectorSession and channel.
The channel must forward:
sendResponse(callId, message);sendNotification(message);flushProtocolNotifications().
Messages must be preserved byte-for-byte as UTF-8 JSON wherever possible. Do not parse and reconstruct V8 protocol payloads in managed code.
Session teardown must call stop()/release the session safely, remove pending messages, and release debugger state without tearing down the WebScene document.
5. Integrate with the engine worker
All calls into V8InspectorSession::dispatchProtocolMessage() must occur with the correct isolate/context/thread ownership.
- Add a thread-safe inbound Inspector command queue to
webscene_engine. - Signal the existing engine worker when a command is enqueued.
- Dispatch commands on the worker while holding the same isolate ownership used by ordinary WebScene execution.
- Add a bounded outbound response/notification queue per Inspector session.
- Notify the managed host using a non-blocking “message available” callback; the callback must not call back into the engine.
- Avoid blocking the Uno/Avalonia UI thread while waiting for Inspector responses.
- Apply explicit queue limits and disconnect or fail predictably on sustained debugger backpressure.
6. Implement the paused nested loop
When V8 invokes runMessageLoopOnPause(), the WebScene engine worker must enter a nested loop that:
- remains responsive to Inspector commands;
- processes
Debugger.resume, stepping commands, paused evaluation, property inspection, and object release; - does not run ordinary timers, animation frames, input callbacks, React work, or scene publication while JavaScript is paused unless required by Inspector semantics;
- wakes through a condition variable when a protocol message or shutdown request arrives;
- exits immediately when
quitMessageLoopOnPause()is called; - exits cleanly when the engine is disposed or the debugger disconnects;
- does not deadlock with shared-isolate locks, managed callbacks, navigation, or application shutdown.
This loop is essential: accepting a WebSocket without implementing pause-loop behavior would allow some Runtime commands but would hang on real breakpoints.
7. Add a native Inspector ABI
Add an ABI surface similar to:
typedef void (*webscene_inspector_message_available_callback)(
void* user_data,
uint64_t session_id);
WEBSCENE_API uint64_t webscene_engine_inspector_connect(
webscene_engine* engine,
webscene_inspector_message_available_callback callback,
void* user_data,
uint8_t wait_for_debugger);
WEBSCENE_API uint8_t webscene_engine_inspector_dispatch(
webscene_engine* engine,
uint64_t session_id,
const char* json,
size_t json_length);
WEBSCENE_API size_t webscene_engine_inspector_take_message(
webscene_engine* engine,
uint64_t session_id,
char* destination,
size_t capacity);
WEBSCENE_API void webscene_engine_inspector_disconnect(
webscene_engine* engine,
uint64_t session_id);Exact naming and ABI versioning may differ, but the contract must remain asynchronous and worker-safe. Avoid calling managed code with the complete protocol message directly from a paused V8 stack.
Update:
- the native public header;
- exported symbol lists for all supported platforms;
- native runtime manifest/ABI validation;
- managed P/Invoke declarations;
- runtime package smoke tests;
- ABI compatibility tests.
8. Add managed Inspector wrappers
Expose a managed session abstraction in the native backend, for example:
public interface INativeWebSceneInspectorSession : IAsyncDisposable
{
ulong Id { get; }
ValueTask DispatchAsync(ReadOnlyMemory<byte> message, CancellationToken cancellationToken = default);
IAsyncEnumerable<ReadOnlyMemory<byte>> ReadMessagesAsync(CancellationToken cancellationToken = default);
}The managed wrapper must:
- own the native session lifetime;
- copy or lease native message buffers safely;
- drain outbound messages when signaled;
- propagate engine disposal and debugger disconnect;
- avoid marshaling Inspector work through the UI dispatcher;
- expose current target metadata such as title, URL, V8 version, and target ID.
Also bring the Uno diagnostics surface to parity by exposing public console and last-error access, even though Inspector will become the preferred interactive diagnostics path.
9. Add raw CDP transport support
Chrome expects the standard discovery endpoints:
GET /json/version
GET /json
GET /json/list
WS /devtools/page/{targetId}
/json/list should return at least:
[
{
"description": "WebScene V8 document",
"id": "<stable-target-id>",
"title": "<document title>",
"type": "page",
"url": "<document URL>",
"devtoolsFrontendUrl": "devtools://devtools/bundled/inspector.html?ws=127.0.0.1:9229/devtools/page/<target-id>",
"webSocketDebuggerUrl": "ws://127.0.0.1:9229/devtools/page/<target-id>"
}
]The wieslawsoltes/CDP repository already has discovery and WebSocket server code, but its current concrete session parses commands and dispatches them into managed domain handlers. Add a raw/pass-through session contract, such as an ICdpConnectionSession or IRawCdpTargetSession, so a WebScene target can:
- accept raw WebSocket text messages;
- forward them unchanged to the native Inspector session;
- send raw V8 responses and notifications unchanged;
- bypass
CdpDispatcherfor V8-owned domains; - support asynchronous notifications that are not paired with an incoming command.
Do not register replacement managed handlers for V8 Runtime, Debugger, Console, Profiler, or HeapProfiler domains.
The current Chrome.DevTools.Protocol package includes unrelated dependencies such as Jint, SkiaSharp, profiling libraries, and XAML tooling. Prefer extracting a lightweight transport/discovery package rather than adding that full dependency graph to WebScene runtime packages.
10. Forward console and exception information to Inspector
WebScene currently implements a custom JavaScript console. Continue supporting the existing host console queue, but also send Inspector-compatible console messages so the DevTools Console panel receives them.
- Forward log level, message, context ID, URL, line, column, and a captured stack where available.
- Preserve
Error.stackfor logged error objects. - Report synchronous uncaught exceptions through Inspector exception instrumentation.
- Report unhandled promise rejections and revoke them if a handler is attached later.
- Avoid duplicate console entries if both WebScene's queue and Inspector instrumentation observe the same call.
11. Preserve useful script identities
WebScene already supplies a v8::ScriptOrigin using the resource/document name. Preserve and strengthen this behavior:
- use canonical document/resource URLs for external scripts;
- give deterministic URLs to inline scripts;
- preserve
sourceURLandsourceMappingURLdirectives; - ensure cached compilation retains the same origin metadata;
- ensure navigation and iframe scripts appear as distinct DevTools sources;
- verify
Debugger.scriptParsedcontains stable URLs suitable forsetBreakpointByUrl.
12. Enable source-mapped original-source debugging
V8 Inspector can debug generated JavaScript without source maps, but original React/JSX debugging requires the consuming build to emit them.
Update the 7GUIs validation sample from:
sourcemap: falseto an appropriate development configuration such as:
sourcemap: true,
sourcesContent: truePrefer an inline source map for the first vertical slice to avoid unrelated map-fetching and file-URL issues. Follow with external source-map coverage using stable URLs.
The production build may continue disabling source maps unless explicitly configured otherwise.
Verify that DevTools displays src/main.jsx and that a breakpoint in JSX binds to the correct generated location in dist/main.js.
13. Add opt-in launch configuration
Provide a documented configuration API and command-line integration for hosts, for example:
--webscene-inspect=127.0.0.1:9229
--webscene-inspect-brk=127.0.0.1:9229
Equivalent managed options should support applications that do not use command-line parsing.
Required behavior:
- inspector disabled by default;
- explicit address/port configuration;
- port
0support for automatic ephemeral-port selection where practical; - actual endpoint printed to the development log;
inspect-brkwaits before application scripts execute, but keeps the host responsive enough for discovery and connection;- clear diagnostics for address conflicts, unavailable Inspector builds, shared-isolate restrictions, and unsupported platforms.
14. Security requirements
A CDP connection permits arbitrary JavaScript execution and inspection of application state. Treat the endpoint as privileged.
- Bind to loopback by default.
- Require an explicit opt-in before listening.
- Include an unguessable target/session token in the WebSocket URL or require an equivalent authorization mechanism.
- Do not expose the endpoint on all interfaces without a separate explicit unsafe-development option.
- Reject unexpected
Originvalues or document the chosen local-development origin policy. - Bound message size, queue depth, and session count.
- Do not log complete Inspector messages by default because evaluated expressions and object values may be sensitive.
- Ensure published Release applications do not silently open a debug port.
- Document that enabling the endpoint grants debugger-level control of the application.
Expected initial DevTools functionality
The first complete implementation should enable:
- target discovery through
chrome://inspect; - DevTools Sources panel;
- DevTools Console panel;
Runtime.evaluate;- script discovery and source retrieval;
- URL and location breakpoints;
- pause and resume;
- step into, over, and out;
- pause on exceptions;
- call frames and scope inspection;
- evaluation on a paused call frame;
- CPU profiling;
- V8 heap inspection/profiling, subject to the Inspector build configuration;
- original JSX/TypeScript debugging when valid source maps are supplied.
V8 Inspector alone does not supply WebScene's browser/renderer domains. The following are follow-up work rather than blockers for JavaScript source debugging:
- a native WebScene DOM tree in the DevTools Elements panel;
- computed CSS and rule editing;
- WebScene layout highlighting and hit testing;
- network/resource timing and request inspection;
- storage/application panels;
- DOM mutation and event-listener breakpoints backed by WebScene DOM operations;
- React DevTools component, props, hooks, and state inspection.
Chrome DevTools may show unsupported tabs or issue unsupported browser-domain commands. Those commands should fail cleanly without breaking the V8 debugging session.
Suggested implementation phases
Phase 1: Native protocol proof
- Build/link V8 Inspector.
- Register the root context.
- Create one native Inspector session.
- Dispatch
Runtime.enable,Debugger.enable, andRuntime.evaluatein a native test. - Capture responses and
Debugger.scriptParsednotifications through an in-memory channel.
Phase 2: Breakpoint and pause-loop proof
- Add worker command queues.
- Implement the paused nested message loop.
- Set a breakpoint by URL.
- Execute a script, receive
Debugger.paused, evaluate on a call frame, step, and resume. - Verify engine disposal and debugger disconnect while paused.
Phase 3: Native ABI and managed bridge
- Export connect, dispatch, take-message, and disconnect operations.
- Add ABI and P/Invoke tests.
- Add a managed asynchronous Inspector session wrapper.
Phase 4: Chrome transport
- Add or reuse lightweight CDP discovery/WebSocket transport.
- Publish a WebScene target through
/json/list. - Forward raw Inspector JSON bidirectionally.
- Connect Chrome DevTools through
chrome://inspect.
Phase 5: Source maps and 7GUIs validation
- Enable development source maps.
- Debug
src/main.jsxrather than onlydist/main.js. - Pause in the Counter click handler after interacting with the native Uno window.
- Verify locals, stepping, watches, console output, and resume.
Phase 6: hardening and documentation
- Add security defaults and authorization/token handling.
- Add queue/backpressure limits.
- Verify navigation, iframes, multiple sessions, shutdown, and unsupported commands.
- Document Chrome DevTools and IDE connection workflows.
- Measure inspector-disabled startup, memory, and runtime overhead.
Testing requirements
Native unit/integration tests
- Inspector creation and destruction with the V8 isolate.
- Root context creation/destruction notifications.
- Iframe context registration and teardown.
Runtime.enableandDebugger.enableresponses.Debugger.scriptParsedincludes the expected script URL.Runtime.evaluatereturns primitive and object results.Debugger.setBreakpointByUrlresolves a breakpoint.- execution produces
Debugger.pausedwith real V8 call frames. - paused evaluation and
Debugger.resumework. - stepping works without processing unrelated page tasks while paused.
- pause-on-caught and pause-on-uncaught-exception behavior.
- unhandled promise rejection reporting.
- console message forwarding.
- disconnect and engine disposal while running and while paused.
- bounded inbound/outbound queue behavior.
- explicit behavior under shared-isolate mode.
ABI and managed tests
- ABI symbol/version validation on every native runtime RID.
- UTF-8 messages larger than the caller's first buffer are copied using the established required-size pattern.
- session IDs cannot be reused after disconnect.
- managed cancellation and disposal do not leak sessions or block the worker.
- availability callbacks remain non-blocking and never re-enter the native engine.
CDP transport tests
/json/versionreturns actual protocol/runtime metadata./json/listreturns a valid WebScene target and WebSocket URL.- WebSocket messages are forwarded unchanged in both directions.
- asynchronous V8 notifications are delivered without a pending request.
- multiple sessions are either supported correctly or rejected with a documented error.
- invalid target IDs, oversized frames, malformed JSON, and unauthorized connections fail safely.
End-to-end acceptance test
Use the React 7GUIs WebScene host as the validation application:
- Build a development bundle with source maps and embedded source content.
- Start the Uno WebScene application in inspector mode.
- Discover the target through
/json/list. - Connect a CDP client and enable
RuntimeandDebugger. - Observe
Debugger.scriptParsedfor the bundle and its source map. - Set a breakpoint in the original
src/main.jsxCounter event handler. - Trigger the Counter button through native input.
- Receive
Debugger.pausedat the original source location. - Assert that call frames and local React handler state are inspectable.
- Evaluate an expression on the paused call frame.
- Step once and resume.
- Verify the application remains responsive and the Counter update completes.
- Disconnect DevTools and shut down without native or managed leaks.
Acceptance criteria
- Inspector support is opt-in and no port is opened by default.
- A WebScene target is discoverable from
chrome://inspect. - Chrome DevTools connects without a protocol translation layer for V8-owned domains.
-
Runtime.enableandDebugger.enableare served by the actual WebScene V8 isolate. - Loaded WebScene scripts appear in the Sources panel with stable URLs.
- Breakpoints can be set in generated JavaScript.
- With a valid source map, a breakpoint can be set and hit in original JSX.
- Pause, resume, step into, step over, and step out work.
- Paused call frames, scopes, locals, watches, and evaluation work.
- Console log/warn/error messages appear in DevTools without duplication.
- Synchronous exceptions and unhandled promise rejections are visible with useful stacks.
- The native UI remains responsive while JavaScript is paused.
- Navigation, debugger disconnect, and application shutdown cleanly release Inspector state.
- Shared-isolate behavior is explicitly supported or explicitly rejected in inspector mode.
- Inspector-disabled builds/runs show no material startup or steady-state regression.
- The endpoint is loopback-only and protected by default.
- Chrome DevTools and IDE attach instructions are documented.
- Unsupported DOM/Page/Network commands fail cleanly and do not terminate the V8 session.
Activity
wieslawsoltes commentedon Aug 3, 2026
Full source editor/debugger client and validation addendum
This addendum makes the latest requirement a governing constraint for every implementation detail in this issue:
The WebScene runtime work is therefore not complete when Chrome can merely attach. Every protocol, lifecycle, source-identity, source-map, pause-loop, and transport decision must also provide enough faithful V8 information for the CDP Inspector application's source editor to deliver a VS Code-class debug workflow. The current client-side implementation is tracked by CDP PR #109.
1. WebScene-to-editor debugging contract
For the full source editor/debugger requirement, WebScene must expose the real V8
Runtime,Debugger,Profiler, andHeapProfilerprotocol without translating or synthesizing debugger state. The Inspector editor must receive stable script IDs and URLs, exact zero-based line/column positions, source-map URLs, execution-context lifecycle events, breakpoint resolution events, pause reasons/data, call-frame IDs, scope chains, remote-object IDs, async stack traces, exception details, and console stack traces.The contract must support at least:
Debugger.getScriptSource;Debugger.searchInContent;Runtime.getProperties, object groups, object release, previews, getters, and exception-safe formatting;Debugger.evaluateOnCallFramewith side-effect/error reporting;Debugger.setScriptSource, including compile errors, changed call frames, restart requirements, and source refresh;Every unsupported V8 command must return the original Inspector error response and must not destabilize the session.
2. Original React/TypeScript source experience
For the full source editor/debugger requirement, generated bundle debugging alone is insufficient. Development builds must emit valid source maps with
sourcesContent; WebScene must preserve canonicalScriptOrigin,sourceURL, andsourceMappingURLdata; and the transport must leaveDebugger.scriptParsedfields unchanged.Acceptance must cover:
.jsx,.tsx,.js, and.tssources in the Inspector editor;3. Inspector editor interaction requirements
For the full source editor/debugger requirement, the CDP Inspector app must consume the WebScene target exactly as it consumes Node or Chrome V8 targets. Its source workspace must provide a real code-editor experience rather than a read-only protocol viewer:
WebScene implementation choices must be validated against these consumers and may not rely on Chrome DevTools-only behavior that prevents another conforming CDP client from debugging the same isolate.
4. Required development validation matrix
For the full source editor/debugger requirement, development must continuously exercise both protocol correctness and visible editor behavior:
node --inspecttarget and run deterministic integration flows for source loading, breakpoints, watches, call stacks, restart frame, evaluation, source search, and live edit.Each end-to-end run must save a machine-readable report and screenshots. Failures must retain enough protocol trace and target metadata to distinguish runtime, transport, mapping, and client/editor defects without logging sensitive expression values by default.
5. Additional headless integration tests
For the full source editor/debugger requirement, add repeatable tests covering:
/json/listvariants;Runtime.runIfWaitingForDebugger;6. Screenshot evidence required for acceptance
For the full source editor/debugger requirement, attach or link screenshots showing:
Screenshots are validation artifacts, not substitutes for automated assertions; both are required.
7. Expanded definition of done
For the full source editor/debugger requirement, all existing acceptance criteria remain in force and the issue is additionally complete only when:
This addendum intentionally keeps WebScene's isolate/Inspector responsibilities separate from the CDP Inspector app's editor responsibilities, while treating the complete VS Code-style workflow as the cross-repository acceptance target.
wieslawsoltes commentedon Aug 3, 2026
Implementation status update from CDP PR #109: the Inspector now has persistent rich breakpoints (standard, conditional, and logpoints), breakpoint activation and reconnect rebinding, async stack display, ignore-list/blackboxing controls, editable paused-frame variables, hover and selection evaluation, live edit, watches, and hardened standalone V8 transport behavior. We validated the full remote chain by controlling the packaged Inspector through its own CDP endpoint while it debugged a real paused Node V8 process (33/33 steps), plus real Chrome/Node protocol tests, headless UI tests, Playwright, and Computer Use screenshots. WebScene still needs to expose the standard V8 Inspector discovery/WebSocket endpoint and preserve script URLs/source-map metadata as detailed above; once it does, the same UI and protocol paths apply without a WebScene-specific debugger dialect.
wieslawsoltes commentedon Aug 3, 2026
Status update after the latest WebScene and CDP pushes:
Current screenshots and machine-readable reports are retained in the local acceptance artifacts; both draft PR descriptions link the cross-repository implementation and validation. CI is running for WebScene b1e4598 and CDP e09587c.
wieslawsoltes commentedon Aug 3, 2026
Implementation status update from draft PR #8:
decb56b).094b25f).9a11ce7).bbd0d39).WEBSCENE_INSPECT_TOKEN, never a generated secret discoverable only inside the app (2d68f2d).All four PR review threads are resolved. Standard CI is green on Ubuntu/macOS/Windows; local Release validation is native CTest 4/4, Avalonia net10 43/43, tooling 18/18, and Uno clean. The dedicated V8 PR lane is currently executing its full native test/package/WPT/interop step: https://github.com/wieslawsoltes/WebScene/actions/runs/30843011441
Cross-repository authored TypeScript/JavaScript live edit remains validated through CDP PR #109: original source-map mutation is dry-run and applied with
Debugger.setScriptSource, and the real React WebScene target executes the replacement source.wieslawsoltes commentedon Aug 3, 2026
Performance acceptance architecture update (
9a1d518): Inspector is now a separate compile-time runtime flavor. Production builds default toWEBSCENE_NATIVE_ENGINE_ENABLE_V8_INSPECTOR=OFF, which removes the Inspector dependency, state, queues, hooks, and worker polling; diagnostic builds opt in with--v8-inspector/-V8Inspectorand advertiseWEBSCENE_ENGINE_BUILD_FEATURE_V8_INSPECTORplusv8Inspector:truepackage metadata.Matched Release package validation on the same pinned V8 SDK passed native CTest 4/4, required WPT 1/1, a 12,800-operation interop race with zero faults/leaks, NuGet creation, and consumer build for both flavors. Production is 31,108,688 bytes with no Inspector implementation markers; diagnostics is 31,888,736 bytes, isolating the 780,048-byte feature cost from ordinary applications.
wieslawsoltes commentedon Aug 3, 2026
Remaining literal Chrome DevTools parity after the V8 source-debugging stage
PRs CDP #109 and WebScene #8 define the current stage boundary: authoritative V8 Inspector transport and lifecycle, Chrome discovery/attachment, Runtime/Debugger/Profiler/HeapProfiler, source maps, authored JS/TS/JSX mutation, breakpoints, pause/stepping/scopes/watches, live edit, WebAssembly debugging, and the compact Inspector source/debug workspace.
The following work remains for literal Chrome DevTools browser parity. It should continue under this issue after the current stage merges; it is not silently treated as complete by the V8 source-debugging PRs.
1. WebScene browser and renderer domains
Target/Pagelifecycle model, frame tree, navigation events, document metadata, reload, screenshot, and screencast semantics where WebScene can support them.DOMnode identity model and CDP projection: document/tree retrieval, child requests, attribute/text mutations, search, node resolution, mutation events, backend node IDs, iframe ownership, and navigation invalidation.CSSmatched rules, inline styles, computed styles, stylesheet/source ranges, rule/property mutation, pseudo-state forcing, and source mapping back to authored CSS.Overlayinspect mode, hover/selection highlighting, box-model geometry, hit testing, rulers, and layout overlays for flex/grid where supported.Networkrequest/response lifecycle events, headers, timing, cache/service state, bodies, failures, initiators, redirects, and WebSocket/resource visibility from the native loader.Storage/ Application coverage for local/session storage, cookies or explicitly unsupported cookie behavior, cache data, quotas, and origin clearing.DOMDebugger, event-listener, DOM mutation, XHR/fetch, instrumentation, and resource breakpoints.2. Full VS Code-class source editor in the CDP Inspector
3. Framework-aware debugging
4. Parity verification and release gates
Current-stage closeout
wieslawsoltes commentedon Aug 3, 2026
New exact-binary application proof is available in PR #8: the real 7guis-React WebSceneHost runs against the Inspector-enabled V8 binary, opens original source-mapped
main.jsx, resolves and pauses a React breakpoint, exposes call stack/scopes/watch state, supports F10/F5 through the packaged CDP Inspector. See the validation record with screenshots. Remaining Chrome DevTools parity work stays tracked by the detailed backlog above.wieslawsoltes commentedon Aug 4, 2026
CDP source-editor and V8 validation stage update
The next CDP editor/debugging slice is now on CDP main in four granular commits:
Validation at a581d20:
Evidence:
The language-service API surface is implemented, while issue #7 deliberately remains open for its remaining UI command wiring, import/project awareness, multi-target editor workflow, browser/renderer domains, and literal Chrome DevTools parity items. The next CDP preview release is pending the exact-head main CI result. WebScene PR #8 remains unmerged pending Dan final approval.
wieslawsoltes commentedon Aug 4, 2026
Current-stage closeout
CDP preview.33 is fully published: https://github.com/wieslawsoltes/CDP/releases/tag/v0.1.0-preview.33
Release result:
WebScene PR #8 current head is 16a8593:
WebScene remains intentionally unmerged because Dan has not yet replaced the historical changes-requested review with final approval. The remaining literal Chrome DevTools parity backlog above stays open and authoritative.
wieslawsoltes commentedon Aug 4, 2026
CDP Sources JS/TS navigation and refactoring stage
CDP main now wires the existing TypeScript semantic engine into the Inspector Sources UI as a project-aware editing workflow.
Implemented:
Granular commits:
Release validation:
This advances the code-editor parity lane but does not close issue #7. Remaining Chrome DevTools parity includes command palette/quick-open, search/replace UX, full semantic token presentation, richer peek/references UI, edits/history/diff UX, advanced breakpoint editor behavior, and broader browser/Node/WebScene acceptance matrices.
wieslawsoltes commentedon Aug 4, 2026
Exact-head CI closeout
CDP exact head dd3d9d2 is fully green after rerunning one unrelated Windows inactivity-abort flake:
Workflow: https://github.com/wieslawsoltes/CDP/actions/runs/30880683936
The first Windows attempt had no assertion failure: 670 RDP tests passed before the test host exceeded the existing 60-second inactivity guard during unrelated RdpFrameBufferTests teardown. The failed-job rerun passed without source changes. This JS/TS Sources stage is complete; issue #7 remains open for the documented remaining parity backlog.
wieslawsoltes commentedon Aug 4, 2026
CDP Sources navigation parity stage — exact-head closeout
CDP main now includes the next compact VS Code-style source navigation slice in two granular commits:
Implemented behavior:
Ctrl+P: fuzzy file/path search across workspace files and loaded V8 runtime scripts.Ctrl+Shift+P: one command surface for editor navigation/refactoring plus debugger actions such as breakpoint, continue, pause, stepping, and run-to-cursor.Ctrl+Shift+O: current JS/JSX/TS/TSX symbol search backed by the embedded TypeScript service.Ctrl+T: bounded project-wide JS/JSX/TS/TSX symbol search across the loaded language-service project.Validation at exact CDP head
948ba6b:artifacts/headless-screenshots/sources-command-palette.pngand posted in the development thread for visual review.Review and cross-repository state:
16a8593, all required checks are green, and it has 0 unresolved review threads.Issue #7 remains open. The next editor/debugger parity work still includes reusable preview/pinned tabs and history, search/replace and richer references/peek UX, semantic token presentation, advanced breakpoint editing/state, filesystem/runtime conflict and diff workflows, multi-target sessions, and the WebScene browser/renderer domain backlog.
wieslawsoltes commentedon Aug 4, 2026
V8 debugging milestone complete
The cross-repository V8 debugging goal is complete at the agreed working-debugger boundary. Literal Chrome DevTools and VS Code parity remains follow-up work in this issue and is no longer a blocker for closing the implementation goal.
Completed CDP stage
Completed WebScene implementation stage
End-to-end acceptance evidence
Deferred work
This issue remains open as the authoritative backlog for the already documented remaining browser/renderer domains, full editor and advanced breakpoint UX, multi-target debugging, framework tooling, mutation conflict/history workflows, accessibility/layout polish, parity matrices, and expanded release gates. Those items are future parity stages, not defects preventing current V8 debugging from working.
wieslawsoltes commentedon Sep 18, 2026
Disposition after live verification:
7f8f43b51890ba3c77bae2bf98e28d565dd2922eon 4 August 2026.Removing
vscode-oss/planned, detaching this completed implementation milestone from #227, and closing it as completed. #397 is intentionally outside the current release graph.