Add makefile entry for remote debugging support with dev environment

This commit is contained in:
Dane Everitt 2021-01-21 20:08:54 -08:00
parent 3f84ee694b
commit 17b46a4a8f
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -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_*