Add some debugging util
MODIFY
.gitignore
.gitignore
@@ -5,7 +5,7 @@ cordless_linux_64
cordless
cordless_64.exe
cordless_32.exe
-.vscode/
+cordless_debug
.idea/
*.log
theme.json

ADD
.vscode/launch.json
+{
+ // 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"
+ },
+ ]
+}
\ No newline at end of file

ADD
build_debug.sh
+#!/bin/sh
+
+go build -gcflags="all=-N -l" -o cordless_debug
\ No newline at end of file

ADD
debug.sh
+#!/bin/sh
+
+dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./cordless_debug
\ No newline at end of file

Add some debugging util