Skip to content

Working with logs ​

The Logs tab is a single chronological journal of what happens on the page: network requests, component props and emits, Pinia changes and actions, SPA navigation, clicks and JS errors. It helps to reconstruct a scenario step by step and to hand it over as a file.

The tab is always visible, comes after Pinia Stores, and records events the same way in the extension and in Bookmark (Standalone) mode.

Event types ​

TypeWhat is logged
Send requestOutgoing fetch / XMLHttpRequest call: URL, method, initiator, Params, request Headers, Authorization, request Body
Receive responseResponse to that call: status, duration, size, response Headers, response Body, network error
WebSocket openThe connection opened: URL and handshake Headers. Its own type in the Type filter
WebSocket sentOne outgoing frame. Each frame is its own event
WebSocket receivedOne incoming frame. Each frame is its own event
WebSocket closedClose of that connection: close code, reason, duration, size, and No automatic reconnect when the protocol says the client will not open a new socket
Change propsChanged props of a component: list of changes and full Before / After snapshots
EmitComponent event: component, event name, arguments, listener type (regular / once), parent chain
Change storeChanged Pinia state: list of changes and full Before / After snapshots. The type also includes the store's base states: Store initialized, Store snapshot and Store checkpoint (see How events are stored)
Store actionPinia action call: arguments, result or error, status, duration
NavigationSPA navigation: pushState, replaceState, popstate, hashchange with From / To. When logging starts, and after Clear, the current page is recorded as snapshot
ClickA primary click: XPath of the field or button (its id when that id is unique and stable, otherwise an absolute path) and Text inside that control. A click on an icon inside a button is recorded as the button. Clicks on Vue Inspector itself are skipped. The value of a password or hidden field is not stored
JS errorUncaught error, unhandled promise rejection or console.error of the page: message, source, location, compact stack (see JS errors)

Each network call produces two events that share one network entry. Send request shows what was sent, Receive response shows what came back. A WebSocket writes a separate event for the open connection (WebSocket open), for every sent frame, for every received frame and for the close. Those four types are in the Type filter. They share one stored connection, so the handshake and the frame text are kept once. After a request is edited at a Breakpoint, both events show the data that was actually sent and received.

Top toolbar ​

The search box placeholder is Search events.... The active criteria are set in Options → Logs → Search Settings (see Logs settings):

ModeDescription
Search by event nameTitle, subtitle, the event key, and the request URL. On by default
Search by keyKeys in the payload and changed paths
Search by valueValues in the payload

Search by event name stays on when Search by key and Search by value are both off, so a query still matches names.

For Change store and Change props, key and value search looks at the changed paths and values; full states are searched in the Store initialized, Store snapshot and Store checkpoint events. The index walks nested data to depth 20 and keeps at most 200 000 characters of keys and 200 000 of values per event.

A query without quotes matches a substring. A query wrapped in double quotes "..." matches the whole string. Both ignore case. Minimum length and debounce come from Options → General → Search Parameters (default 2 characters and 300 ms, Update settings). The length is the text inside the quotes. A shorter non-empty query does not start a new search; the previous result stays until the field is cleared or the query reaches the minimum.

Type ​

Type limits the table to the selected event types. All types are on by default. The menu footer has Select all and Clear. With every type off the table says No event types selected — enable them in the Type filter. A search or type filter that matches nothing says No events match the filters. An empty buffer says No events logged yet.

Status indicators ​

ItemPurpose
N or N/MN is visible rows. /M appears when a search or a Type filter is active and the counts differ. M is every event in the buffer
ignoredShown only when at least one group is ignored. The number is the ignore list. Click opens Options → Logs, the Ignore list table
PausedShown while recording of new events is paused

Log controls ​

ControlPurpose
Pause / ResumeIcon button. Tooltip Pause logging or Resume logging. The icon is orange while paused
ClearTooltip Clear all. Disabled when the buffer is empty. Removes every recorded event and the row selection
Export LogsExport events to an HTML report (see Export). On a narrow toolbar the button moves to the row under the search field

Work area ​

Events table ​

ColumnContent
CheckboxSelection for export
TimeEvent time with milliseconds
TypeColored type badge
EventTitle and short description (method and path, component and event, store and changed keys, etc.)

Rows are highlighted by level: 4xx responses — warning; 5xx, network errors, failed actions and JS errors — error.

Selection for export ​

The first column contains checkboxes, in the same position as the favorites star in Props and Pinia.

ActionResult
Click a checkboxSelect / unselect a row. Send request and Receive response of the same request are selected and cleared together
Shift + clickSelect a range from the last clicked row
Ctrl / Cmd + click on a rowToggle a row without opening details
Header checkboxSelect all / clear selection

When rows are selected, the button shows Export Logs (n) and exports only them as an HTML report. Without a selection, all filtered events are exported.

Event details ​

Clicking a row opens details on the right. The layout follows Network: a tab strip, name/value tables and JSON blocks in the JSON editor.

TypeTabs
Send requestOverview, Params (n), Headers, Body, Raw
Receive responseOverview, Headers, Body, Raw
WebSocket openOverview, Headers, Messages (n), Raw
WebSocket sent, WebSocket receivedOverview, Headers, Message, Raw
WebSocket closedOverview, Headers, Messages (n), Raw
Change props, Change storeChanges (n), Before, After, Raw
Store initialized, Store snapshot, Store checkpointOverview, State, Raw
Store actionOverview, Arguments, Result / Error, Raw
EmitArguments (n), Overview, Raw
Navigation, JS errorOverview, Stack (errors), Raw
ClickOverview, Raw

Changes shows a diff by path: added, removed and changed values with the old and new value. Very large diffs are truncated; the full state stays available on Before / After.

Before / After of a store change are restored from the store's base state and the changes after it. When that is impossible (the earlier events of the store are no longer in the log), the tab says so and Changes still shows the changed values; a value that cannot be restored is shown as not available.

Raw shows the event with all restored fields.

If a network body was larger than the configured event size, Body shows a notice with the original size.

A binary Receive response uses the same bar as Network, directly under the section tabs: content type, size and a Binary badge, for example image/jpeg (986.2 KB). The file itself is not stored. Duration on Store action and Receive response is shown with two digits after the decimal point (635.90 ms).

Event actions ​

Actions are available in the ⋮ menu of the details header and in the row context menu (right click or ⋮ in the row):

ActionPurpose
Ask AIAttach the event to a question for the assistant. The AI tab opens with a chip above the input that shows the event name: × removes it from the question. Type a question, or send the chip without one. The assistant gets the full event with its id #N, masked and cut by the AI settings
Export eventExport one event. For a network event, Send request and Receive response of the same request go into one file. A WebSocket event exports that one event
Copy cURLCopy the request as a cURL command (also available on Receive response: both events share the request data). WebSocket events do not have this action
Open request event / Open response eventJump to the paired network event. A WebSocket uses Open connection event / Open close event
IgnoreStop logging this group of events

Ignore works per group: the same request (method and path), the same component, the same store, and so on. Ignored groups are not recorded at all. The ignored indicator in the toolbar opens Options → Logs, the Ignore list, where Log again resumes one group and Log all again resumes every group.

How it works ​

When recording starts ​

Recording starts together with the rest of Vue Inspector in the tab context. Events are kept in the page, so the history is available when Logs is opened later, without reloading the page.

How events are stored ​

Events keep only primary data; titles, descriptions and full states are derived when an event is shown.

  • Pinia. When a store is created while logging is running, a Store initialized event records its full state. When logging starts on a store that already exists, a Store snapshot event records its current state. After that, every Change store event stores only the changes. Before / After are rebuilt from the base state and the changes up to the event. Switching Inspector tabs does not create new snapshots. A new snapshot is recorded after Clear and after masking settings change. A recorded state is split like on the Pinia Store tab: state holds the declared state, getters holds getters and data the store keeps outside its declared state (for example, fields assigned in actions of an options store with an empty state()). Changes of both are tracked, so change paths start with state. or getters..
  • Network. Send request and Receive response reference one shared network entry. WebSocket events reference one shared connection: the open event, each frame and the close. Equal response or request bodies (for example, a polled endpoint) are stored once. A duration tick while the socket stays quiet does not add a new event.
  • Shared snapshots. Identical values inside any event — props, store state, action arguments and results, emit arguments, errors, navigation — are stored once. Each later copy is a reference to that snapshot. The Logs tab and the HTML report restore the full value, so the data you see is the data that was captured.

Limits ​

A shared memory budget keeps long sessions stable. When it is reached, the log is cut at a Navigation: every event recorded before that navigation is removed, whatever its type — network requests and responses, WebSocket, props, Pinia, emits, store actions and errors. Events from the navigation onward stay. Each earlier navigation is a cut in turn, so the oldest period goes first. The last navigation is rewritten as a snapshot of the page at that moment (from is cleared), and events before it are removed the same way. If the log is still over the budget, the oldest remaining events are removed by age. The newest event is always kept, even if it alone exceeds the budget. Limit event size is on by default at 512 KB, so larger parts of an event are cut. Groups of events can be switched off completely. Defaults and settings are described in Logs settings.

Send request and Receive response follow Maximum HTTP requests (Options → Network, default 500): an older request leaves the log together with its response. WebSocket open, WebSocket sent, WebSocket received and WebSocket closed follow Maximum WebSocket events (the same screen, default 500): each of those records counts as one, and the oldest are dropped. Both rings are separate from the memory budget.

A Pinia chain is not broken by a cut. Changes up to the cut are rebuilt into one Store checkpoint with the store state at that point, placed before the events that remain. The previous base and the diffs that produced it are deleted. Later Change store events still restore Before / After from that checkpoint. A store whose next remaining event is already a full state does not get a checkpoint; its older events are removed.

JS errors ​

JS error events come from three sources, shown in Overview as Source: Uncaught error, Unhandled rejection and console.error.

  • Only the inspected page. Whether an error is the page's is decided by where it comes from (the caller in the stack), not by its text. Messages and errors of Vue Inspector itself and of other browser extensions are not logged. This includes Vue Inspector's internal reports about failed fetch / XHR requests: such a request is already a Network event. The app's own console.error about a failed request is kept.
  • console.error. The message is built like in the browser console (%s, %d, %o and similar are applied, objects are shown as a short preview); object arguments are kept in Raw. Location points to the line of the app that called console.error, or to the top frame of an error passed to it. More than 50 messages per second are not logged; the next event shows how many were skipped (Suppressed).
  • Compact stack. The message is kept. A stack longer than 10 frames keeps the first 5 and the last 5; the middle is replaced by … N more frames (stack truncated). Overview shows Stack: Truncated with how many frames were kept from each end.

Errors of the inspected page stay in the page console and in Logs. They are not added to the extension error list (chrome://extensions); that list shows only failures of Vue Inspector itself. A page exception from WebSocket send or close, such as WebSocket is already in CLOSING or CLOSED state, is included: the wrapper that records the frame runs in the page. A failed fetch, an aborted or timed-out request, and a response body that could not be read because the connection dropped (Failed to fetch, network error) are recorded only as a Network row. While logging runs, a page console.error passes through a small page-side bridge, so the browser console may attribute that line to the bridge. The message and the stack are unchanged.

Data masking ​

Sensitive data is masked when an event is captured, so it never reaches the view or exports: passwords, tokens, cookies, authorization headers, card numbers and similar keys, as well as JWT, Bearer / Basic credentials and card numbers inside any text.

See also ​

GPL-3.0 licensed.