I'm trying to run the kedro viz backend in the vsc...
# questions
f
I'm trying to run the kedro viz backend in the vscode debugger. The backend process seems to exit with a non-zero code with no error message, after a delay of about a minute. Any idea what causes this? It seems this only occurs after control is passed to uvicorn but that's all I've managed to figure out.
r
can you please share traceback, screenshots of the error; also what version of kedro-viz; and vscode are you on?
f
There's no traceback. It just exits with code 247 after a short delay. I don't even need to stop at a breakpoint. It works fine when not run in a debugger. kedro 1.0.0 kedro-datasets 9.0.0 kedro-telemetry 0.6.5 kedro-viz 12.2.0 Version: 1.107.0 (Universal) Commit: 618725e67565b290ba4da6fe2d29f8fa1d4e3622 Date: 2025-12-10T074347.883Z Electron: 39.2.3 ElectronBuildId: 12895514 Chromium: 142.0.7444.175 Node.js: 22.21.1 V8: 14.2.231.21-electron.0 OS: Darwin arm64 24.6.0 My launch.json is simply:
Copy code
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Kedro Viz",
            "type": "debugpy",
            "request": "launch",
            "module": "kedro",
            "args": ["viz"],
            "justMyCode": false,
        }
    ]
}
r
Hi, i wasn't able to replicate this at my end; I tried running on this Kedro demo project and it worked fine (https://github.com/kedro-org/kedro-viz/tree/main/demo-project)
Maybe it's to do with another dependency; i have uvicorn == 0.35.0