From 17b46a4a8f524ab6a86e7a83f6eaa8dd876b70e4 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Thu, 21 Jan 2021 20:08:54 -0800 Subject: [PATCH] Add makefile entry for remote debugging support with dev environment --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 594cc64..e419df5 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,12 @@ debug: go build -race sudo ./wings --debug --ignore-certificate-errors --config config.yml +# Runs a remotly debuggable session for Wings allowing an IDE to connect and target +# different breakpoints. +rmdebug: + go build -gcflags "all=-N -l" -race + sudo dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./wings -- --debug --ignore-certificate-errors --config config.yml + compress: upx --brute build/wings_*