wiki:notes/VSCode

notes for VSCode

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,
    }
  ]
Last modified at 2023-07-09T07:16:45Z Last modified on 2023-07-09T07:16:45Z