Breakpoint does not work in .cs File

jvallejvalle Member ✭✭

I have a xamarin form solution in visual studio 2019, I want to run step by step, I put a breakpoint and run de aplication but breakpoint does not work it.

Best Answer

  • grimordegrimorde ✭✭
    Accepted Answer

    Are you referring to the xaml.cs or the ViewModel .cs file? If it's the ViewModel, when I've had this happen to me it's because the app is breaking before it hits the ViewModel due to an issue in the xaml. I usually stick a try/catch around the InitializeComponent(); in the constructor of the xaml.cs to see what I've done wrong :)

Answers

  • grimordegrimorde Member ✭✭
    Accepted Answer

    Are you referring to the xaml.cs or the ViewModel .cs file? If it's the ViewModel, when I've had this happen to me it's because the app is breaking before it hits the ViewModel due to an issue in the xaml. I usually stick a try/catch around the InitializeComponent(); in the constructor of the xaml.cs to see what I've done wrong :)

Sign In or Register to comment.