Xamarin.Forms IOS Breakpoints Not Hit

后端 未结 6 1713
一个人的身影
一个人的身影 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:56

    Xamarin forms: Make sure that your view is bound with the binding context otherwise breakpoints will not hit. And the breakpoints appear as symbols not loaded.

    Example :

    public ExamplePage()
        {
            InitializeComponent();
            BindingContext = App.Resolve();
        }
    

    That resolved the issue for me:)

提交回复
热议问题