Slow Launch on Mac OS Big Sur

138 views
Skip to first unread message

Thomas Stehle

unread,
Jan 21, 2021, 7:59:43 AM1/21/21
to CodeLLDB Users
Hi!

I noticed that debugging a C++ program yields a very slow launch (~10 s) on Mac OS Big Sur. It wasn't exactly fast with Mac OS 10.15 but I don't remember it being this slow.

The lag is not better when executing "Run without Debugging" which e. g. is much faster with a debugger such as SLDB.

On a related note, I also get the following terminal output since Mac OS 11 which I didn't get before:
2021-01-21 13:49:27.274874+0100 app[6823:113199] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=6823
2021-01-21 13:49:27.274962+0100 app[6823:113199] SecTaskCopyDebugDescription: aroma[6823]/0#-1 LF=0

Initially, I suspected a Big Sur security feature intervening with the launch process so I added exceptions to the Privacy rules under "Security & Privacy" and "Developer Tools" but this has no apparent effect.

Any ideas? Thanks!

Thomas

Thomas Stehle

unread,
Jan 21, 2021, 9:12:49 AM1/21/21
to CodeLLDB Users
So digged a little into the GitHub issues and found this entry
which discusses how to replace the LLDB backend.

When I replace the built-in backend with the one which is part of Xcode, the launch time significantly improves and is now around the old time (~3s). So maybe it does have to do with certain process privileges.

Thomas
Reply all
Reply to author
Forward
0 new messages