Xamarin iOS app very slow when debugger attached

Pat Long 36 Reputation points
2022-02-21T12:23:01.363+00:00

For the last week my Xamarin Forms app is running incredibly slowly when the debugger is attached. To quantify what I mean by "slow"

  • Scrolling a TableView with 20 fixed TableCells takes upto 20 seconds to respond to the scroll
  • Moving from Page to Page takes 45 seconds

If I disconnect the debugger (By pressing stop button) and run the same deployed app, on the same device it works and performs as expected. I have tried debugging over WiFi and with a direct cable to the Mac build machine.

Looking at the scrolling example I see nothing in the debug window (or any of the Xamarin panes) other than

Thread finished: <Thread Pool> #278
Thread finished: <Thread Pool> #270
Thread finished: <Thread Pool> #291
Thread finished: <Thread Pool> #305
Thread finished: <Thread Pool> #288
Thread finished: <Thread Pool> #271
Thread finished: <Thread Pool> #285
Thread finished: <Thread Pool> #272
Thread finished: <Thread Pool> #259
Thread finished: <Thread Pool> #251
Thread finished: <Thread Pool> #249
Thread finished: <Thread Pool> #269
Thread finished: <Thread Pool> #248
Thread finished: <Thread Pool> #245
Thread finished: <Thread Pool> #267
The thread 0x116 has exited with code 0 (0x0).
The thread 0x10e has exited with code 0 (0x0).
The thread 0x123 has exited with code 0 (0x0).
The thread 0x131 has exited with code 0 (0x0).
The thread 0x120 has exited with code 0 (0x0).
The thread 0x10f has exited with code 0 (0x0).
The thread 0x11d has exited with code 0 (0x0).
The thread 0x110 has exited with code 0 (0x0).
The thread 0x103 has exited with code 0 (0x0).
The thread 0xfb has exited with code 0 (0x0).
The thread 0xf9 has exited with code 0 (0x0).
The thread 0x10d has exited with code 0 (0x0).
The thread 0xf8 has exited with code 0 (0x0).
The thread 0xf5 has exited with code 0 (0x0).
The thread 0x10b has exited with code 0 (0x0).
Thread started: <Thread Pool> #313
Thread started: <Thread Pool> #314
Thread started: <Thread Pool> #315

Visual Studio is running on my Windows 10 laptop

VS 2019 on Windows 16.11.7 connected to Macbook pro with Xcode 13.1. I have restarted the Windows machine, the mac and the iPhone 11 device

Any idea what to look for?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
{count} vote

Accepted answer
  1. BitBull Ltd 80 Reputation points
    2023-11-16T16:10:16.8+00:00

    Sorry, can't help but I have the same issue since switching to a Silicon Mac and Sonoma. performance is OK then suddenly runs dog slow for no apparent reason. Seems to be something to do with the debugger connection. Please post if you ever find a solution!

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful