{
  "slug": "Debug-Golang-with-vscode-e749e9c0c94e",
  "title": "Debug Golang with vscode",
  "subtitle": "Make .vscode directory in your project.",
  "excerpt": "Make .vscode directory in your project.",
  "date": "2023-01-10",
  "tags": [
    "Go"
  ],
  "readingTime": "1 min",
  "url": "https://medium.com/@mobinshaterian/debug-golang-with-vscode-e749e9c0c94e",
  "hero": null,
  "content": [
    {
      "type": "heading",
      "level": 2,
      "text": "Debug Golang with vscode"
    },
    {
      "type": "paragraph",
      "html": "Make&nbsp;.vscode directory in your project."
    },
    {
      "type": "paragraph",
      "html": "Put launch.json file inside the folder."
    },
    {
      "type": "paragraph",
      "html": "and put below json inside the file."
    },
    {
      "type": "paragraph",
      "html": "then press Cntl + F5"
    },
    {
      "type": "code",
      "lang": "json",
      "code": "{    // Use IntelliSense to learn about possible attributes.    // Hover to view descriptions of\nexisting attributes.    // For more information, visit:\nhttps://go.microsoft.com/fwlink/?linkid=830387    \"version\": \"0.2.0\",    \"configurations\": [\n{            \"name\": \"Launch Package\",            \"type\": \"go\",            \"request\": \"launch\",\n\"mode\": \"auto\",            \"program\": \"main.go\",            \"envFile\": \"${workspaceFolder}/.env\"\n}    ]}"
    }
  ]
}
