How to add -race argument in launch.json file?

2019-07-20 02:04发布

问题:

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"]