Skip to content

Commit 464c3f8

Browse files
PatchesMapsZachTRice
authored andcommitted
Enhance debug mode activation to support multiple NODE_DEBUG values
1 parent d92abb5 commit 464c3f8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tasks/buildOptions.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ while getopts ":vfd" option; do
1515
case $option in
1616
v)
1717
echo "Verbose Mode Activated"
18-
MODE="verbose";;
18+
MODE="verbose"
19+
;;
1920
f)
2021
echo "Force Mode Activated"
21-
CACHE_MODE="no-store";;
22+
CACHE_MODE="no-store"
23+
;;
2224
d)
2325
echo "Debug Mode Activated"
2426
export NODE_OPTIONS='--inspect'
25-
export NODE_DEBUG=http*;;
27+
export NODE_DEBUG=http,http2
28+
echo "Open debugger to view results (change '--inspect' to '--inspect-brk' to break on start)"
29+
;;
2630
esac
2731
done
2832

0 commit comments

Comments
 (0)