wiki:notes/VSCode

Version 2 (modified by root, at 2021-10-18T04:46:41Z) (diff)

--

VSCode notes

golang debug with env and tags

  "configurations": [
    {
      "name": "Launch file",
      "type": "go",
      "request": "launch",
      "mode": "debug",
      "program": "${file}",
      "buildFlags": "-tags=tag1",
      "env": {
        "VARIABLE_NAME": "variable value",
      },
      "showLog": true,
    }
  ]