From cb7603864bb91e200de5a5c46505780121485f7e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 15 Sep 2017 07:21:15 -0400 Subject: [PATCH] Added `make debug` --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index ef9b536f..ae8d898b 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,13 @@ ifeq ($(ARCH), win) env PATH=dep/bin:/mingw64/bin ./$< endif +debug: $(TARGET) +ifeq ($(ARCH), mac) + lldb ./Rack +else + gdb -ex run ./Rack +endif + clean: rm -rfv $(TARGET) build dist