From 8920f919b1766fb3bf7ae9115832ff628ff0b365 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_*