From 4c0c29d7d69fafbc78745529945094dc1e58edb0 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Thu, 25 Mar 2021 23:42:04 +0100 Subject: [PATCH] macos: add --debug option to NetRadiant build to run with lldb --- setup/macos/NetRadiant | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/setup/macos/NetRadiant b/setup/macos/NetRadiant index 68a151e1..21933a16 100755 --- a/setup/macos/NetRadiant +++ b/setup/macos/NetRadiant @@ -47,4 +47,11 @@ then export GTK2_RC_FILES="${gtkrc_file}" fi -exec ./netradiant "${@}" +if [ "${1}" = '--debug' ] +then + shift + export PATH="/usr/bin:${PATH}" + exec lldb ./netradiant "${@}" +else + exec ./netradiant "${@}" +fi -- 2.39.2