diff --git a/.gitignore b/.gitignore index dd0e828..59e018d 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,19 @@ /vendor/ /Godeps/ +### VS Code +# Reference: https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets +# Local History for Visual Studio Code +.history/ +# Built Visual Studio Code Extensions +*.vsix + ### JetBrains+all ### # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..bbe40be --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + // needs to attach to running dlv process execute + // dlv debug --headless --listen=:2345 . + // in the root of the package first + "version": "0.2.0", + "configurations": [ + { + "name": "Attach to Process", + "type": "go", + "debugAdapter": "dlv-dap", + "request": "attach", + "mode": "remote", + "remotePath": "${workspaceFolder}", + "host": "127.0.0.1", + "port": 2345 + } + ] +}