Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Breakpoints not working in xamarin uwp in Visual Studio 2017

I am new in Xamarin Forms. Using xamarin application breakpoints work very well under Android but fails with UWP.

Checking option project → Properties → Build → "Compile using the native code tool chain" causes navigation to not work.

NB: vs 2017 is up to date (version 15.5.7)

like image 244
charfeddine khaldi Avatar asked Feb 21 '18 17:02

charfeddine khaldi


People also ask

How do you set a breakpoint in Visual Studio 2017?

Set breakpoints in source code 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.

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 show breakpoints in Visual Studio?

Visual Studio's/Atmel Studio's Breakpoint Window gives you an overview of all breakpoints you have set in your project. You open the Breakpoint Window with the menu item Debug > Windows > Breakpoints or by pressing [Alt+F9].


1 Answers

This can happen if xamarin is used with .net standard, by default the shared library uses the 'portable' debug mode, if it is changed to 'Full' it should work correctly. Go to Project properties -> build -> Advanced -> Debuggingh information and set Full.

like image 130
dgzornoza Avatar answered Sep 16 '22 19:09

dgzornoza