Logside: Troubleshooting
Answers for Logside, the plugin that shows console output, errors and network requests next to your code. New to it? Start with Getting started.
“Error: Cannot find module ’…/logside/hook-…/logside-hook.cjs’”
Node prints this and stops when a process got Logside’s NODE_OPTIONS but runs where the hook file does not exist: a Docker container or dev container that received the IDE terminal’s environment, WSL, a remote machine, or a terminal outside the IDE set up with “Copy setup” after the IDE’s cache folder was deleted.
Fix it in that terminal with unset NODE_OPTIONS LOGSIDE_DIR LOGSIDE_PROJECT, or open a new terminal tab. To keep Logside out of a container, do not pass NODE_OPTIONS into it.
Logside itself does not add the hook to terminal sessions that the IDE runs in WSL, Docker or over SSH, nor to run configurations with a remote or container interpreter.
What you see (Node 18.20.8, 20.18.0, 22.9.0 and 24.13.0 on macOS, same text, exit code 1):
node:internal/modules/cjs/loader:1424
throw err;
^
Error: Cannot find module '/Users/someone/Library/Caches/JetBrains/IntelliJIdea2026.3/logside/hook-1a2b3c/logside-hook.cjs'
Require stack:
- internal/preload
My dev server’s output does not show up
- The process was started in a terminal tab that was open before capture was on. Stop it and start it again in a new terminal tab or with a run configuration. To keep the old tab, click Copy setup for another terminal in the notification (or Copy Setup for Another Terminal in the Console tab toolbar), paste the lines into that tab and start the process again there. The Logside tool window names such processes when it finds them.
- Capture is off for this project: the status bar says “Logside: off”. Click it to turn it on.
- The process runs with
NODE_ENV=production: Logside stays out of production runs on purpose. - Test runners that replace
consolein their workers (Vitest) are not captured; their own reporter shows the logs.
Terminal capture is off
Logside shows “Logside: terminal capture is off” when the IDE’s terminal API that Logside uses is missing or has changed, which can happen after an IDE update. Until a Logside update follows it:
- What stops: Logside no longer adds itself to new terminal tabs, so the output, values and requests of an app you start in a terminal tab are not shown.
- What still works: Node.js and npm run configurations, the Logside browser, everything captured so far, and the Console and Network tabs.
- To capture a terminal anyway: click Copy setup for another terminal in the notification (or Copy Setup for Another Terminal in the Console tab toolbar), paste the lines into the terminal tab, then start your app from that tab. The lines set
NODE_OPTIONSfor that tab only.
Copy Diagnostic Info names the error the terminal API gave, for a report.
Turning Logside off for one run configuration
Add LOGSIDE_DISABLE=1 to the configuration’s environment variables. The same variable works in a terminal: LOGSIDE_DISABLE=1 npm run dev.
Browser capture and the debugging port
Logside reads the browser console over the browser’s debugging protocol, the same one the IDE’s JavaScript debugger uses. While a browser runs with a debugging port, any program on this computer can connect to that port and fully control that browser profile: read its pages, cookies and saved sessions, and run code in them. That is why:
- “Open in Logside Browser” starts a separate profile in the IDE’s system folder (
<system>/logside/browser/<project>/), never your everyday profile and never inside the project. - The port is chosen by the browser at random (
--remote-debugging-port=0) and only listens on 127.0.0.1. - Logside closes that browser when you close the project or the IDE. It never starts, flags, attaches to or closes your own browser.
Do not sign in to personal accounts in the Logside browser. “Attach to Browser…” connects to a browser that you started with a debugging port yourself; Logside only disconnects from it, it never closes it.
Which browser pages Logside reads
- Pages on
localhost,127.0.0.1,[::1]and any*.localhostname. - The address you opened from Logside (“Open in Logside Browser”, or the link next to a process’s port).
- Hosts you list under Settings > Tools > Logside > “Also capture:” (for example
myapp.test, or a tunnel host).
Pages of any other site in the same browser run as usual and are not read; the tool window names them once (“Not read: …”). A tab that navigates to another site is let go, and taken back when it comes back to a captured page.
When you start a “JavaScript Debug” configuration, Logside attaches to the browser the debugger starts, as a second client, and lets go when the debug session ends. Turn this off with “Attach to the browser of JavaScript debug sessions” in the same settings page.
A browser line shows only in the Console tab
Logside places a browser value on a line only when it is sure of the line: the page can load a source map for the script, or the dev server serves the project file unchanged. A wrong line would be worse than none.
Maps are read through the browser itself, with the page’s cookies and the certificates the browser accepts, from the page’s own origin or a loopback host. The entry’s details say why it has no line, and the tool window lists each cause once:
- “the source map of bundle.js could not be loaded (404)”: the dev server does not serve the map;
- “the certificate of … is not trusted”: only when the browser could not load it and the IDE’s fallback failed too;
- “…is from host, a site other than the page’s”: maps are not read from third-party hosts;
- “the line is in a library (pkg)” or “in the dev server’s own code”: expected, not a problem;
- “the browser reported it without a call stack”: resource loads (“Failed to load resource (404):
”), security and network messages.
The IDE was killed and the Logside browser is still open
Open the project again: Logside finds its browser by the project’s profile folder and uses it, and closes it with the project as usual. You can also just close that browser window.
The Network tab is empty
- The Network tab is part of Logside Pro. In the free edition it explains this and nothing is captured for it.
- Node: only processes started after Logside Pro was active are captured (the hook reads
LOGSIDE_NET=1when the process starts). Restart the dev server in a new terminal tab. - Browser: requests of the Logside browser’s captured pages (see “Which browser pages Logside reads”). Pages opened from Logside show their first load in full; for a tab you opened yourself, reload it once.
- Requests made by the IDE’s own JavaScript debugger browser are captured too while Logside is attached to it.
Why a value says ”••••” (masked)
Secret values are masked in the list, the details, copies (cURL, fetch) and saved .http files:
- headers such as
Authorization,Cookie,Set-Cookieand API keys; - query parameters, URLs in
LocationandReferer, and the password inhttps://user:password@host; - in JSON and form bodies (sent and received), the values of keys such as
password,token,access_token,refresh_token,client_secret,api_key,session,keyorotp. The rest of the body is shown as sent.
Node requests are masked inside your app’s process, before anything is written to disk. To see the values, use the eye button in the Network tab or Settings | Tools | Logside; for Node this applies to processes started after the change.
A saved .http file uses variables for masked values (Authorization: {{Authorization}}, "password": "{{password}}", ?token={{secret}}). Set them in http-client.private.env.json to run the request, or turn masking off before saving.
A request has no line
The Initiator column shows the first line of your code in the request’s stack. For a request made through a helper in another file (api.ts with getJson()), it shows both lines: api.ts:3 ← users.ts:6, and a failed request is marked on both. When there is no line, the details say why:
- Requests the page makes by itself (the document, images and styles in the HTML) have no script line.
- An
EventSourceis reported by Chrome as started by the HTML parser, so it has no line. - A library that makes the request after a step of its own (a promise or a timer) leaves no frame of your code on the stack: the details name the library (for example got) and the Initiator tab lists its frames. axios, ky and undici keep your line (checked with axios 1.7, ky 1.7, got 11.8 and undici 6.21 on Node 18 and 24, and axios and ky in Chrome).
Bodies that are not shown
Text bodies are kept up to 5 MB each and 50 MB in all per project (the oldest go first); both limits are in Settings | Tools | Logside | Limits. Images, fonts and other binary bodies show their size and type only. Event streams (text/event-stream) and long downloads are counted, never kept. Nothing is kept after the project closes.
Memory: a JSON response is parsed into a tree when its details are shown. The tree of a 5 MB JSON body takes about 60 MB of memory while it is shown (measured: 56 to 61 MB in four sandbox runs). Only the request shown holds one; it is let go when the Logside tool window is hidden or another tab of it is open, and built again (about 65 ms for 5 MB) when the details show.
Search in the Console tab
The Console’s search reads the row text, the file (its path in the project) and the whole value Logside kept for each entry: keys and values at every level, strings whole, error messages and stack frames. Values are kept up to a limit: Node values to 5 levels, 100 items and 10,000 characters a string (1,000 inside objects); browser values to 4 levels (then a one-level preview), 100 items and 10,000 characters. Text beyond what was kept cannot be found; the search summary says how many values were kept in part, and the details of such an entry say so too.
Turning Logside off, and uninstalling it
Off for one project: click “Logside” in the status bar, or clear “Capture Node.js output” in Settings | Tools | Logside. New terminal tabs and new runs no longer get the hook. Terminal tabs that were already open keep the NODE_OPTIONS they were started with until you close them (or run unset NODE_OPTIONS LOGSIDE_DIR LOGSIDE_PROJECT there); processes started from them still load the hook, which writes nothing while capture is off.
Off for one run configuration: add LOGSIDE_DISABLE=1 to its environment variables.
Uninstall: Settings | Plugins | Installed | Logside | Uninstall. The beta build unloads without a restart; the release from JetBrains Marketplace asks you to restart the IDE. After that:
- the Logside browser closes, and inline values and the tool window go away;
- new terminal tabs and new runs get no
NODE_OPTIONSfrom Logside; - terminal tabs and Node processes that were started before keep running as they are, and their apps answer as before. Their hook stops writing within seconds, because the IDE no longer signals that it reads. The hook file stays on disk so that they do not crash; a process started later from such an old tab still loads it and writes nothing. Close those tabs (or run
unset NODE_OPTIONS LOGSIDE_DIR LOGSIDE_PROJECTin them) before deleting the files below.
What stays on disk after uninstalling, and how to remove it (paths for macOS; <system> is the IDE’s system folder, shown by Help | Show Log in Finder, one level up, for example ~/Library/Caches/JetBrains/IntelliJIdea2026.3; on Windows %LOCALAPPDATA%\JetBrains\<product><version>, on Linux ~/.cache/JetBrains/<product><version>):
| What | Where | Remove |
|---|---|---|
| The Logside browser’s profile, one per project (cookies, local storage and cache of the pages you opened in it; 9 to 60 MB each in our tests) | <system>/logside/browser/<project id>/ | delete the folder <system>/logside/browser |
Hook files (two .cjs files, 47 KB) | <system>/logside/hook-<version>/ | delete the folders <system>/logside/hook-* after closing old terminal tabs |
| Spool folders (log lines on their way to the IDE) | <system>/logside/spool/ | empty after a normal uninstall or project close; delete the folder |
| Settings for all projects | <config>/options/logside.xml, for example ~/Library/Application Support/JetBrains/IntelliJIdea2026.3/options/logside.xml | delete the file |
| Settings for one project | the LogsideProject part of the project’s .idea/workspace.xml | the IDE keeps it; it does nothing without Logside |
Deleting <system>/logside removes everything but the settings. Logside writes nothing in your project folders except that workspace.xml part, which the IDE manages.
“Cannot update plugin(s): Unable to identify where Logside was installed from”: the IDE shows this balloon for any plugin installed from a zip file on disk. It is harmless; a Marketplace install does not show it.
My Logside Pro licence does not cover this version
Logside Pro is a subscription with a perpetual fallback licence. When a subscription ends, the licence keeps Logside Pro for good in the versions released up to 12 months before the day it was paid up to. A Logside version released later runs as the free edition, and the Network tab says so with both dates.
- What stays: logs, errors and the values next to your code, with no time limit, and your settings.
- What stops in this version: the Network tab, and failed requests marked on their lines.
- To get it back: renew Logside Pro from Help | Register… (the Network tab and the notification have a Renew Logside Pro button), or install a Logside version released up to the date the Network tab gives. The Logside page on JetBrains Marketplace lists every version with its date.
Which IDE versions Logside runs in
Logside runs in IntelliJ IDEA Ultimate and WebStorm 2026.1 and newer (build 261 or later). To see your version, open IntelliJ IDEA (or WebStorm) | About (Help | About on Windows and Linux): the build number starts with IU- or WS-, then 261 for 2026.1, 262 for 2026.2 and 263 for 2026.3.
An older version does not load Logside. Its message says that Logside “is not compatible with the current version of the IDE, because it requires build 261 or newer”, or, in short, “Incompatible: requires IDE build 261 or later”. Update the IDE (IntelliJ IDEA or WebStorm | Check for Updates on macOS, Help | Check for Updates on Windows and Linux, or the Toolbox App), then install Logside again.
Reporting a problem
Click Copy Diagnostic Info (the ? button in the Console tab toolbar) and paste the text into your message on the contact page. It lists the Logside and IDE versions, the settings you changed, the connected processes by script file name with their event counts, and why some entries have no line (by kind). It holds no logged values, URLs, headers, command-line arguments or paths of your code.
Known issues
- Node 18 (and 20 before 20.17, 22 before 22.6): when an
httprequest fails and the app has noerrorlistener, the crash text Node prints (“Emitted ‘error’ event on ClientRequest instance at:”) starts with a frame fromlogside-main.cjs. The crash, the error and the exit code are the same as without Logside. Later Node versions report request errors on a diagnostics channel, and the text is the same as without Logside. - An error thrown inside
req.write()orreq.end()(for example writing after the end) lists one frame fromlogside-main.cjsin its stack: Logside reads the request body there. The error itself is unchanged.