Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Breakpoints not getting hit in Visual Studio 2019 Xamarin.Forms project

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?

like image 768
Razzzz Avatar asked Mar 25 '20 11:03

Razzzz


People also ask

Why are my breakpoints not working?

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.

How do I set breakpoints in Visual Studio 2019?

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.

How do I add a breakpoint to all methods in Visual Studio 2019?

Press F3 and then press F9 to add a breakpoint.


Video Answer


1 Answers

After days of exploring i finally found out that i unchecked Use Shared Runtime.

enter image description here

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.

like image 132
Razzzz Avatar answered Oct 12 '22 04:10

Razzzz