Add dev launch config and preserve existing NODE_OPTIONS

Add a "Dev Launch CLI" VS Code debug configuration and fix
scripts/dev.js to preserve existing NODE_OPTIONS (e.g. --inspect
flags injected by VS Code debugger) instead of overwriting them.
This commit is contained in:
DragonnZhang 2026-02-10 16:45:04 +08:00
parent 66f754e203
commit 3c513b6271
2 changed files with 18 additions and 2 deletions

13
.vscode/launch.json vendored
View file

@ -127,6 +127,19 @@
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"env": {}
},
{
"type": "node",
"request": "launch",
"name": "Dev Launch CLI",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"],
"skipFiles": ["<node_internals>/**"],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"env": {
"GEMINI_SANDBOX": "false"
}
}
],
"inputs": [