From 51ecb49db3c9a19625b0719449126c46abd95152 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 18 Aug 2020 17:35:39 -0700 Subject: [PATCH] for debugging --- weed/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 weed/Makefile diff --git a/weed/Makefile b/weed/Makefile new file mode 100644 index 000000000..896067df0 --- /dev/null +++ b/weed/Makefile @@ -0,0 +1,15 @@ +BINARY = weed + +SOURCE_DIR = . + +all: debug_mount + +.PHONY : clean debug_mount + +clean: + go clean $(SOURCE_DIR) + rm -f $(BINARY) + +debug_mount: + go build -gcflags="all=-N -l" + dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec weed -- mount -dir=~/tmp/mm