I recently upgraded to the new Xamarin for Visual Studio, and since then, I can no longer hit breakpoints during IOS debugging. Android works fine, strangely.
I uninstalled and reinstalled Visual Studio Community Edition 2017 and left all of the defaults intact. Previously, this has resolved odd issues like this one.
I have read dozens of similar complaints, but those solutions have not worked for me.
I had the same issue with Visual Studio 2017 on Windows and latest Xamarin using the iOS simulator on remote Mac. Debugging started, but breakpoints were not hit.
Got it working by changing nothing on the Mac or iOS Build options; instead changed the generated Debugging information type in Visual Studio 2017 in Windows from "Full" or "Pdb-only" to "Portable".
I did this for the iOS Platform project as well as the shared Xamarin.Forms project (.NET Standard 2.0).
After this the breakpoints started getting hit in both the Shared project and the iOS platform project. Good times.
An alternative solution is to disable linking in the iOS project (not PCL project). This worked for me.
- Go to iOS project settings
- iOS Build
- Linker Behavior: Don't Link.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With