24

Since downloading Xcode 11, I have noticed that setting breakpoints, stepping into and over code, that the debugger tends to hang, sometimes for minutes at a time. I cannot imagine that Apple would release something like this so I assume I have some misplaced configuration setting or something. Has anybody else noticed this? If so, is there a fix? Surely I am not the only person who has ran into this problem.

Cœur
  • 37,241
  • 25
  • 195
  • 267
PDG
  • 349
  • 3
  • 10
  • Just to be more specific I am running OSX 10.14.6, Xcode 11.0 (11A420a). I have tested on both simulator and multiple devices running iOS 11, 12 and 13. – PDG Oct 06 '19 at 19:01
  • I have a mac mini that I use as a backup, I am updating it to all the latest stuff and will test to see if it too is very slow. My 32gb i7 Macbook Pro, has fried the system board 3 times in the less than a year that I have had it, so I am thinking it could actually be a hardware problem. – PDG Oct 07 '19 at 16:03
  • Having a nice little conversation with myself. I updated my mac mini to the same exact environment as my mac book pro. The debugger is also nearly unusable there as well. I guess I will wait and see if anybody else is experiencing this problem. Hard to believe nobody out there is using Xcode 11 and debugging. – PDG Oct 07 '19 at 18:14
  • I have found this same problem as well. I haven't test it myself but I have read it should be solved in Xcode 11.2. Also, based on my experience the problem with slow debugging only happens in fairly big projects, small ones work just fine – nikano Oct 08 '19 at 07:07
  • Some of this may help you: https://stackoverflow.com/questions/58095866/xcode-11-extremly-slow-a-known-problem – nikano Oct 08 '19 at 07:17
  • 2
    Same issue here on 11.1 – Brett Oct 09 '19 at 02:41
  • My project is 548 source files, that probably qualifies as pretty big. I will try 11.2, thanks! – PDG Oct 11 '19 at 01:15
  • I updated to Catalina and xcode 11.1. It seems to be slightly faster, but not much. You can still wait upwards of 2 minutes by simply stepping over a line. Seems totally random. Having trouble getting 3rd party software to link on 11.2, but will get there eventually and comment accordingly here. – PDG Oct 14 '19 at 18:55
  • I noticed that my old projects that are using Objective-C debug just fine. But when I use Swift it debugs really slowly. _(XCode 11.0 - MacOS Catalina)_ – The1993 Oct 18 '19 at 02:19
  • I also have the latest OSX (Catalina) on a Mac Mini 2012 and Xcode 11.1. Debugging is very slow, especially on the first breakpoint hit. After that it runs better. So after every first breakpoint hit, it takes like 15 sec. or more to get back. – AndaluZ Nov 15 '19 at 11:06
  • 1
    I now have XCode 11.2. Nikano suggested that it solved the problem. However, it is still very slow on all of our computers. I believe no improvement at all. Again, this is a very large project, one of the biggest on the app store, Xcode does not seem to be able to manage that very well. I have a bug in with Apple Developer, awaiting reply. Stay Tuned. – PDG Nov 17 '19 at 01:07
  • @PDG What is the Radar number for this issue ? – Brett Nov 18 '19 at 23:49
  • We originally tried to use Apple Developer Technical Support. They want us now to submit a bug report, here is the latest from Apple: – PDG Nov 20 '19 at 21:00
  • Thank you for contacting Apple Developer Technical Support (DTS). We have reviewed your request and believe this issue would be best handled by the relevant engineering team directly, as it may require changes to the OS, tools, or the frameworks you are using. Please submit a complete bug report regarding this issue .... – PDG Nov 20 '19 at 21:01
  • I have never used Feedback assistant, I will let you know when I have submitted, will probably try tonight. – PDG Nov 20 '19 at 21:03
  • There was a problem where every step could take ~15 seconds, which was fixed in Xcode 11.2. There are (relatively) expensive operations taken on the first expression and sometimes the first step in a debug session, but if you're seeing debugger slowness for e.g. the SECOND expression or SECOND step, please do file a report with Feedback assistant -- most importantly, if you can start `sample lldb-rpc-server` while the slowness is happening, it will likely move the investigation along a lot faster. (I'm not saying the first expression/step shouldn't be faster! but it's a different category) – Jason Molenda Nov 20 '19 at 23:15
  • Xcode 11.2.1 has fixed the slowness problem. We still encountered the problem on 11.2. We filed a bug with Feedback Assistant and they replied to confirm that 11.2.1 fixed the issue, which it did. – PDG Nov 23 '19 at 21:22

1 Answers1

1

Yes, 11.2.1 was the fix provided by Apple

PDG
  • 349
  • 3
  • 10