Skip to content

Commit 4810a56

Browse files
authored
Merge pull request #682 from lightpanda-io/make_debug_and_formdata_wpt
Add debug log level to make build-dev and add new make run-debug
2 parents eed3d27 + 72a983f commit 4810a56

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,19 @@ build:
6969
## Build in debug mode
7070
build-dev:
7171
@printf "\e[36mBuilding (debug)...\e[0m\n"
72-
@$(ZIG) build -Dgit_commit=$$(git rev-parse --short HEAD) || (printf "\e[33mBuild ERROR\e[0m\n"; exit 1;)
72+
@$(ZIG) build -Dgit_commit=$$(git rev-parse --short HEAD) -Dlog_level=debug || (printf "\e[33mBuild ERROR\e[0m\n"; exit 1;)
7373
@printf "\e[33mBuild OK\e[0m\n"
7474

75-
## Run the server in debug mode
75+
## Run the server in release mode
7676
run: build
7777
@printf "\e[36mRunning...\e[0m\n"
7878
@./zig-out/bin/lightpanda || (printf "\e[33mRun ERROR\e[0m\n"; exit 1;)
7979

80+
## Run the server in debug mode
81+
run-debug: build-dev
82+
@printf "\e[36mRunning...\e[0m\n"
83+
@./zig-out/bin/lightpanda || (printf "\e[33mRun ERROR\e[0m\n"; exit 1;)
84+
8085
## Run a JS shell in debug mode
8186
shell:
8287
@printf "\e[36mBuilding shell...\e[0m\n"

0 commit comments

Comments
 (0)