Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Add some debugging util
Browse files Browse the repository at this point in the history
  • Loading branch information
Bios-Marcel committed Oct 25, 2020
1 parent c2de287 commit 57c05c5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cordless_linux_64
cordless
cordless_64.exe
cordless_32.exe
.vscode/
cordless_debug
.idea/
*.log
theme.json
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// 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": "Launch",
"type": "go",
"request": "attach",
"mode": "remote",
"remotePath": "${workspaceFolder}",
"port": 2345,
"host": "127.0.0.1"
},
]
}
3 changes: 3 additions & 0 deletions build_debug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

go build -gcflags="all=-N -l" -o cordless_debug
3 changes: 3 additions & 0 deletions debug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./cordless_debug

0 comments on commit 57c05c5

Please sign in to comment.