I'm developing a Xamarin.Forms add, and I don't know if yesterdays update on Visual Studio 2019(16.5.1) was the reason but when i'm in the debug mode connect with my device on Android Project breakpoints don't hit. The interesting part is my app is working OK. I login in my app , a have responses from my Api but the breakpoints not hit. Did anyone have same problem ? I looks like something is changed in my project. P.S I made new Xamarin.Forms blank project the breakpoints are heated. Please someone for solution?
If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the code by default. Normally, this problem happens when a source file is changed, but the source code wasn't rebuilt. To fix this issue, rebuild the project.
To set a breakpoint in source code, click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint. The breakpoint appears as a red dot in the left margin.
Press F3 and then press F9 to add a breakpoint.
After days of exploring i finally found out that i unchecked Use Shared Runtime.
Thank you all for your suggestions , i will make post active, because there are other solution's in the comments that might help someone, because this issue dependence of lot of factors.
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