diff --git a/Makefile b/Makefile index 9eb3d8f..c061668 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ PACKAGES ?= ./... MAIN_SOURCE = cmd/goweb/api.go MAIN_RUNNER = go run $(MAIN_SOURCE) ifeq ($(DEBUG), true) - MAIN_RUNNER = dlv debug $(MAIN_SOURCE) -- + MAIN_RUNNER = gdlv -d $(shell dirname $(MAIN_SOURCE)) debug -- endif .DEFAULT_GOAL := app