diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000000..9f07c45186e --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,33 @@ +{ + // 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": "Acceptance Tests", + "type": "go", + "request": "launch", + "mode": "test", + // this assumes your workspace is the root of the repo + "program": "${fileDirname}", + "env": { + "TF_ACC": "1", + }, + "args": [], + }, + { + "name": "Debug - Attach External CLI", + "type": "go", + "request": "launch", + "mode": "debug", + // this assumes your workspace is the root of the repo + "program": "${workspaceFolder}", + "env": {}, + "args": [ + // pass the debug flag for reattaching + "-debug", + ], + } + ] +}