From bd5f6513bcf377542622c9d8f4d8e2e4817e4a85 Mon Sep 17 00:00:00 2001 From: jonnypower Date: Sun, 15 Jul 2018 01:23:05 -0700 Subject: [PATCH] chore: debug instructions for macos --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index d9b2a6d4..038991ef 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,12 @@ LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH" gdb ./hl_linux r -game ns -dev -steam ``` Due to the new engine and the nature of Linux I had to make a lot of changes! You can find them with grep -Ril `@Linux`. +For MacOS & lldb: +``` +DYLD_LIBRARY_PATH=".:$DYLD_LIBRARY_PATH" /Applications/Xcode.app/Contents/Developer/usr/bin/lldb -- ./hl_osx r -game ns -dev -steam -windowed +``` +Have to use XCode's lldb to get around https://stackoverflow.com/a/33589760 (Lack of environment variables). `-windowed` as windowed mode makes it easier to deal with crashes on MacOS. + ### Hosting a server Since servers are really rare at this point in time here is a tutorial how to set up an [Natural Selection] server with [hlds].