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

No comments:

Post a Comment

Setting program_name in mysql session_connect_attrs allows you to see the name of the program connected

I am using mysql for quite some time now. I have noticed that looking at client connections using mysql workbench so an interesting column ...