# CLion on Apple Silicon Big Sur debugger takes a long time to start

**URL:** <https://forum.juce.com/t/clion-on-apple-silicon-big-sur-debugger-takes-a-long-time-to-start/46507>\
**Category:** MacOSX and iOS\
**Created:** [June 15, 2021, 6:06am UTC](https://forum.juce.com/t/clion-on-apple-silicon-big-sur-debugger-takes-a-long-time-to-start/46507 "2021-06-15T06:06:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![emenden](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@emenden](https://forum.juce.com/u/emenden)\
**Post date:** [June 15, 2021, 6:06am UTC](https://forum.juce.com/t/clion-on-apple-silicon-big-sur-debugger-takes-a-long-time-to-start/46507/1 "2021-06-15T06:06:09Z")

</div>

Hi,

we recently migrated to cmake and using Clion on an M1 Mac Mini.  
When we want to debug using Logic (or any other DAW), Clion gets stuck for a 2-3 minutes on opening Logic. The debug service is using high CPU during this time.  
It’s very difficult to debug having to wait about 3 minutes every time for the DAW to open.  
We have used other plugin host apps that very lightweight but the debugger in clion still takes the same time to start.  
Is there a workaround? Xcode opens the DAW fast and we are able to debug immediately.

Is it possible to replace the LLDB debugger with Xcode’s debugger?

Any advice would be much appreciated.

---

<div class="post-metadata">

**Author:** ![ttg](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ttg/32/14456_2.png) [@ttg](https://forum.juce.com/u/ttg)\
**Post date:** [June 15, 2021, 6:07am UTC](https://forum.juce.com/t/clion-on-apple-silicon-big-sur-debugger-takes-a-long-time-to-start/46507/2 "2021-06-15T06:07:17Z")

</div>

> [@Slowness when attaching to LLDB](https://forum.juce.com/t/slowness-when-attaching-to-lldb/46251):
>
> Since updating to Big Sur, there has been a very annoying lag using CLion and command-line lldb when debugging JUCE projects, even the simplest ones like a Hello World console app. Whenever the debugger is attached, there’s about 5-7 second delay until the program runs. Without the debugger it runs instantly. It also works perfectly using Xcode, or when debugging non-JUCE projects, or on the same computers running Parallels/Boot Camp. The issue only happens on Intel Macs (I’ve tried 3) and onl…

---

<div class="post-metadata">

**Author:** ![eyalamir](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/eyalamir/32/2978_2.png) [@eyalamir](https://forum.juce.com/u/eyalamir)\
**Post date:** [June 15, 2021, 7:02pm UTC](https://forum.juce.com/t/clion-on-apple-silicon-big-sur-debugger-takes-a-long-time-to-start/46507/3 "2021-06-15T19:02:39Z")

</div>

This is related to a CLion bug - they use their own version LLDB which is older than the one Xcode uses and has some issues.

If you can, please comment in their bug tracker. I’ve been reporting it for a while and hopefully if more people send out a report they’ll fix it.

[https://youtrack.jetbrains.com/issue/CPP-23562](https://youtrack.jetbrains.com/issue/CPP-23562)

A couple of workarounds for now:

1. Attaching to a different host, I’ve been using Reaper-ARM and AudioPluginHost.

2. Attaching to the AU process after Logic has loaded without launching it through CLion. Since AU loads the plugins out of process that’s your only way to stop in breakpoints anyway. There’s still a delay there but not as bad.

---

<div class="post-metadata">

**Author:** ![eyalamir](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/eyalamir/32/2978_2.png) [@eyalamir](https://forum.juce.com/u/eyalamir)\
**Post date:** [July 1, 2021, 6:40pm UTC](https://forum.juce.com/t/clion-on-apple-silicon-big-sur-debugger-takes-a-long-time-to-start/46507/4 "2021-07-01T18:40:02Z")

</div>

I haven’t checked on every computer but seems like it’s solved with the very latest 2021.2 EAP version which was updated to LLDB 12.  
@emenden

---

<div class="post-metadata">

**Author:** ![emenden](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@emenden](https://forum.juce.com/u/emenden)\
**Post date:** [July 6, 2021, 12:22pm UTC](https://forum.juce.com/t/clion-on-apple-silicon-big-sur-debugger-takes-a-long-time-to-start/46507/5 "2021-07-06T12:22:01Z")

</div>

Yes!  
It loads Logic immediately. Tested on a Mac M1 and Logic 10.6.2.  
Thanks so much for letting me know

---

<div class="post-metadata">

**Author:** ![emenden](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@emenden](https://forum.juce.com/u/emenden)\
**Post date:** [August 2, 2021, 2:33pm UTC](https://forum.juce.com/t/clion-on-apple-silicon-big-sur-debugger-takes-a-long-time-to-start/46507/6 "2021-08-02T14:33:45Z")

</div>

Just a quick update, for others who may run on to this when using CLion, instead of attaching to Logic, we are attaching to process AUHostingServiceXPC\_arrow
