I debug Go programs in Visual Studio Code. How can I add the -race
argument in launch.json file?
I add config in launch.json like below, but it doesn't work.
"args": ["-race"]
I debug Go programs in Visual Studio Code. How can I add the -race
argument in launch.json file?
I add config in launch.json like below, but it doesn't work.
"args": ["-race"]
Adding buildFlags
works.
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"args": [
...
],
"buildFlags": [
"-race"
]
}
© 2022 - 2025 — McMap. All rights reserved.
"runtimeArgs": ["-race"]
. but it doesn't work @Lamanna – Turley