add vscode debug stuff, adjust gitignore
This commit is contained in:
parent
23f9884874
commit
a92ea6df48
2 changed files with 31 additions and 0 deletions
13
.gitignore
vendored
13
.gitignore
vendored
|
@ -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
|
||||
|
|
18
.vscode/launch.json
vendored
Normal file
18
.vscode/launch.json
vendored
Normal file
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue