Loading the documentation…
The developer inspector lets Chrome DevTools attach to a running DataMind Oda app, so you can debug its host process and its connected browser clients from one DevTools window. It is development tooling for a source checkout rather than part of the everyday app, and it listens on this computer only.
For running, approving, stopping and removing dynamic packages, see Dynamic packages.
The inspector joins one run through an overlay file. Nothing is installed into your profile, so a run started without the overlay has no inspector, and when the run stops, the inspector goes with it.
pnpm run build. The overlay loads the inspector from the build output, and Building and shipping Oda covers building and running from source.oda --profile web --patch . / packages/ experimental/ inspector/ cordis. patch. ymldevtools:/ / address the app logs once the inspector listens. Chrome DevTools attaches to the run and opens on the Elements panel.In a source checkout, pnpm run demo:inspector starts the same web mode and loads the inspector from source instead of the build output.
Once it listens, the inspector serves these addresses on one local port:
| Address | What it answers |
|---|---|
/, / | The DevTools discovery documents. |
/ | The version document for the protocol. |
/ | The target socket DevTools attaches to. |
/ | The socket a browser client connects to as a source. |
fetch calls with the full URL, request and response headers, bodies, status, timing, errors and cancellation. Bodies are kept as a prefix and marked truncated at the configured limits, and an aborted request keeps the bytes captured so far.A connected browser client advertises runtime, console and sources, with its sources read-only; its capability list leaves out the debugger and the heap profiler.
The inspector presents the app as one document with two fixed containers: <host> for the app's host side, and <clients> for the browser clients that connect to it.
<client> entry; it joins as a source and keeps its buffered observations through reconnects, sending them in bounded frames and queues.A plugin publishes snapshots with ctx., and a script reads the detached tree with ctx.. Neither call needs a DevTools window.
The inspector's fields live in its entry in the overlay you run. Set one there when a default does not fit:
| Field | Default | Meaning |
|---|---|---|
host | 127. | The bind address; only a loopback address is accepted. |
port | 9230 | The first port tried; a busy port steps up to the next free one, and 0 asks the operating system to assign one. |
clientOrigins | empty | Extra browser origins accepted by the ingest endpoint, given exactly; loopback origins are always accepted. |
captureFetch | on | Record the host's fetch calls after the inspector starts. |
maxRequestBodyBytes | 8 MiB | The request-body prefix kept for each request. |
maxResponseBodyBytes | 32 MiB | The response-body prefix kept for each request. |
maxBodyChunkBytes | 48 KiB | Raw bytes carried in one body record. |
maxJournalBytes | 256 MiB | Total body bytes the inspector keeps. |
maxRetainedRequests | 2000 | Active and completed requests kept. |
maxSourceFrameBytes | 128 KiB | The largest encoded source frame. |
startupTimeoutMs | 10 s | How long the start waits for the inspector to be ready. |
stopTimeoutMs | 5 s | The window for a graceful shutdown before it is ended. |
clientReconnectBaseMs | 250 ms | The starting client reconnect backoff. |
clientReconnectMaxMs | 5 s | The largest client reconnect backoff. |
clientRuntimeTimeoutMs | 30 s | Deadline for one runtime or sources command sent to a client. |
queryTimeoutMs | 10 s | Deadline for one non-DevTools query. |
The same entry holds a few further bounds: maxSourceRecordsPerFrame 128, maxQueuedRecords 2048, maxQueuedBytes 16 MiB, maxClientRuntimeObjects 10000, maxClientRuntimeProperties 2000, maxClientSourceBytes 8 MiB, maxCordisNodes 2048 and maxDisconnectedCordisTrees 8.
While the inspector runs, anything attached to its DevTools socket can run code in the host and in any connected browser client. Stop the run when you are done.
clientOrigins.| Message | What it means | What to do |
|---|---|---|
Inspector Client query socket is not connected | A query was sent while the client's socket was between connections. The query is refused rather than queued. | Wait for the client to reconnect, then try again. |
inspector: Client source is closed | The client side was already closed when it tried to update its state, as happens during teardown. | Reload the page if the client should still be connected. |
[inspector] Client source rejected: <message> | The inspector refused a browser client as a source; the message carries the reason. | Read the carried reason; the client closes that connection and retries with backoff, from 250 ms up to 5 s by default. |
inspector protocol: Worker frame exceeds <n> bytes | An incoming frame was larger than the frame limit, so the connection closes and reconnects with backoff. | If it repeats, the limit is too small for the data being sent; raise maxSourceFrameBytes in the overlay. |
Client source result exceeds the source-frame byte limit | A sources answer did not fit in one frame, so the inspector refused it. | Read fewer sources at once, or raise maxSourceFrameBytes in the overlay. |
No. It joins one run through an overlay file; nothing is installed into your profile. A run started without the overlay has no inspector, and when that run stops, the inspector goes with it.
No. The overlay loads the inspector from the build output, so build the project first. In a source checkout, pnpm run demo:inspector loads it from source instead.
The devtools:/ address the app logs once the inspector listens; opening it attaches Chrome DevTools to the run.
DevTools reaches the host side fully: console, sources, evaluation, breakpoints, pause and resume all work there. A connected browser client adds its console entries, evaluation and read-only sources; breakpoints, stepping and call frames are not supported in a client, and pause and resume never control one.
Yes. Every connected client joins as its own <client> entry, console entries merge from the host and from all of them, and evaluation goes to the client you select.
Its console context and live object handles are destroyed at once, and its tree stays as the last snapshot until it reconnects and sends a new one. Buffered observations are sent when it joins again. The inspector keeps up to eight disconnected trees.
The capture covers the host's fetch calls only. Direct low-level HTTP client calls and fetch references the app kept before the inspector started are not observed, and a client page's own requests are not captured.
Yes. Set captureFetch to off in the overlay entry. Capture is on by default.
Up to maxRetainedRequests requests, 2000 by default, and maxJournalBytes of body bytes, 256 MiB by default. Each body is kept as a prefix and marked truncated past maxRequestBodyBytes or maxResponseBodyBytes; raise those fields in the overlay when a run needs more.
Yes. See Add your own data: a plugin publishes snapshots and a script reads the detached tree, with no DevTools window needed.
No. Only a loopback address is accepted for the bind, and the client ingest socket additionally requires a random token, so nothing outside this computer can reach it.
The inspector's worker process exited. It does not restart the worker on its own, so that run loses the inspector; start the run again to get it back.