r/ZedEditor•
lasan0432G

How to pass envs to the debug script

I wrote the following script: (debug.json)

{
  "label": "[BE] Debug Server",
  "adapter": "Delve",
  "request": "launch",
  "mode": "debug",
  "program": "${ZED_WORKTREE_ROOT}/apps/backend/cmd/bin",
  "cwd": "${ZED_WORKTREE_ROOT}/apps/backend",
  "args": [
    "-env=local"
  ]
}

I cannot run the above script because the application requires environment variables. I cannot pass them one by one since there are more than 80. Is there a way to pass a .env file?

Posted Dec 9, 2025, 8:57 AM UTC

70
Loading comments…