diff --git a/.gitignore b/.gitignore index ce70221a..41ec07a5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ cordless_linux_64 cordless cordless_64.exe cordless_32.exe -.vscode/ +cordless_debug .idea/ *.log theme.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..469b7854 --- /dev/null +++ b/.vscode/launch.json @@ -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" + }, + ] +} \ No newline at end of file diff --git a/build_debug.sh b/build_debug.sh new file mode 100755 index 00000000..25a0aea6 --- /dev/null +++ b/build_debug.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +go build -gcflags="all=-N -l" -o cordless_debug \ No newline at end of file diff --git a/debug.sh b/debug.sh new file mode 100755 index 00000000..22775366 --- /dev/null +++ b/debug.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./cordless_debug \ No newline at end of file