diff --git a/.gitignore b/.gitignore index 4707afc86..82056c4d9 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ vendor/ go.work .vscode/* +!.vscode/launch.json .idea # Local History for Visual Studio Code diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..d20601107 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "envd up", + "type": "go", + "request": "launch", + "mode": "exec", + "program": "${workspaceFolder}/debug-bin/envd", + "cwd": "directory containing build.envd", + "args": [ + "up" + ] + } + ] +} \ No newline at end of file diff --git a/Makefile b/Makefile index 866e5e4ac..2592b0c5a 100644 --- a/Makefile +++ b/Makefile @@ -160,7 +160,7 @@ generate: mockgen-install ## Generate mocks # It is used by vscode to attach into the process. debug-local: @for target in $(TARGETS); do \ - CGO_ENABLED=$(CGO_ENABLED) go build -trimpath \ + CGO_ENABLED=$(CGO_ENABLED) go build \ -v -o $(DEBUG_DIR)/$${target} \ -gcflags='all=-N -l' \ $(CMD_DIR)/$${target}; \