Configure VSCode to debug Go (Golang) code

 Trying to make sure you can debug your code through Visual Studio Code (VSCode) is sometimes a bit tricky. Here is my json structure for the dvl running configuration of the launch.json file

  {

    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Package",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}/main.go",
            "args": [
                "--ini",
                "sample.ini",
                "--d",
            ]
        }
    ]
}
go, golang, debug, debugger, json, launch.json, configuration, vscode, visual studio code

Comments

Popular posts from this blog

Accessing Windows Share (Samba) From Linux (XFCE) using Thunar

Bypassing the error by "go get" "tls: failed to verify certificate: x509: certificate signed by unknown authority"

Using phpword to merge two Mircrosoft Office Word .docx documents