fcrozatierF
Denoβ€’9mo agoβ€’
10 replies
fcrozatier

error: unexpected argument --experimental-network-inspection when trying to debug

I'm using the following vscode launch.json config

{
      "name": "deno run",
      "request": "launch",
      "type": "node",
      "runtimeExecutable": "deno",
      "cwd": "${workspaceFolder}",
      "program": "${file}",
      "runtimeArgs": [
        "run",
        "--unstable",
        "--inspect-wait",
        "--allow-all"
      ],
      "env": {},
      "attachSimplePort": 9229
    },


which has been working fine for the last year, but now I'm getting the following error when trying to do breakpoint debugging with it:
/usr/local/bin/deno --experimental-network-inspection run ./effect-system/run.ts
error: unexpected argument '--experimental-network-inspection' found

tip: to pass '--experimental-network-inspection' as a value, use '-- --experimental-network-inspection'

Usage: deno [OPTIONS] [COMMAND]

Process exited with code 1

So it seems something is adding the --experimental-network-inspection flag

I've attached a short clip showing the problem.

Any ideas how to solve this?
Thanks!
Was this page helpful?