Xamarin.Forms IOS Breakpoints Not Hit

后端 未结 6 1685
一个人的身影
一个人的身影 2021-01-04 04:05

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 uni

6条回答
  •  孤街浪徒
    2021-01-04 04:59

    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.

提交回复
热议问题