WebScene.Diagnostics.Cdp
1.0.34
dotnet add package WebScene.Diagnostics.Cdp --version 1.0.34
NuGet\Install-Package WebScene.Diagnostics.Cdp -Version 1.0.34
<PackageReference Include="WebScene.Diagnostics.Cdp" Version="1.0.34" />
<PackageVersion Include="WebScene.Diagnostics.Cdp" Version="1.0.34" />
<PackageReference Include="WebScene.Diagnostics.Cdp" />
paket add WebScene.Diagnostics.Cdp --version 1.0.34
#r "nuget: WebScene.Diagnostics.Cdp, 1.0.34"
#:package WebScene.Diagnostics.Cdp@1.0.34
#addin nuget:?package=WebScene.Diagnostics.Cdp&version=1.0.34
#tool nuget:?package=WebScene.Diagnostics.Cdp&version=1.0.34
WebScene.Diagnostics.Cdp
This optional package forwards WebScene's native V8 Inspector Protocol session unchanged through a Chrome-compatible discovery and WebSocket endpoint.
var options = new WebSceneV8InspectorOptions
{
Enabled = true,
Address = IPAddress.Loopback,
Port = 9229,
WaitForDebugger = true
};
WebSceneV8InspectorHost? inspector = null;
await view.LoadAsync(
documentUri,
nativeLibraryPath,
cacheDirectory,
async (readyView, cancellationToken) =>
{
inspector = new WebSceneV8InspectorHost(
readyView.OpenV8InspectorSession,
() => readyView.Source,
options);
await inspector.StartAsync(cancellationToken);
},
Timeout.InfiniteTimeSpan);
The before-navigation hook is required only for WaitForDebugger: it opens a
V8 session before the document request is queued. V8 then waits until the first
client sends Runtime.runIfWaitingForDebugger. The wait occurs on WebScene's
engine worker, so the UI dispatcher, discovery endpoint, and window remain
responsive. The raw session interface lives in WebScene.Backend.Abstractions,
so the same host works with both Avalonia and Uno native views. Dispose
inspector during application shutdown.
Open chrome://inspect, add localhost:9229 under Discover network
targets, and select inspect for the WebScene target. The generated access
token is available as inspector.AccessToken when a direct WebSocket client is
used. Set Port = 0 to request an ephemeral loopback port, then log or read
inspector.DiscoveryUri/inspector.BoundPort after StartAsync.
Inspector hosting is disabled unless Enabled = true. Loopback is the default;
non-loopback bindings require AllowRemoteConnections = true. Enabling that
remote mode also protects discovery when the selected address is loopback.
Remote-mode discovery requests and all WebSocket clients must present the
generated token as a token query parameter or Authorization: Bearer header;
unauthenticated discovery never publishes the bearer secret. Chrome DevTools
origins are the only non-empty origins accepted.
Inspector sessions require WebScene's normal dedicated-isolate mode. The
opt-in WEBSCENE_V8_SHARED_ISOLATE lane intentionally reports the inspector as
unavailable because independent engine workers cannot safely drive the same
isolate inspector.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- WebScene.Backend.Abstractions (>= 1.0.34)
-
net8.0
- WebScene.Backend.Abstractions (>= 1.0.34)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Adds generated ABI 3 codecs for external models, improves cross-platform web-font decoding, caches system-font probes and text shaping, and reduces CSS-variable resize recalculation while preserving dimension inheritance. Fixes detached DOM cleanup after memory-pressure collection and includes cross-platform runtime fixes.