From 62c9d9d84fd7fa8baf29a265fab1809d85c2d0f4 Mon Sep 17 00:00:00 2001 From: Shane Utt Date: Fri, 15 Sep 2023 15:17:23 -0400 Subject: [PATCH] feat: add debug directive to Makefile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 851b25bf..5401751e 100644 --- a/Makefile +++ b/Makefile @@ -152,6 +152,10 @@ build: generate fmt vet ## Build manager binary. run: manifests generate fmt vet ## Run a controller from your host. go run ./main.go +.PHONY: debug +debug: manifests generate fmt vet ## Run a controller from your host via debugger. + dlv debug ./main.go + .PHONY: build.image build.image: DOCKER_BUILDKIT=1 docker build -t $(BLIXT_CONTROLPLANE_IMAGE):$(TAG) .