Cannot place breakpoints or step into methods when debugging Hololens device

I’m unable to place breakpoints or step into any code inside a method when debugging a Hololens project on device .

I can place breakpoint at the start of each method. These are hit as expected.

However, any breakpoints I place within a method are removed once I run (see gif). Furthermore, I cannot step into any method, the debugger skips the method contents, and breaks at the start of the next called method.
3342161--260999--ezgif-3-34c3b0d175.gif

Is there anything I’m missing to get this to work?

Notes about my setup:

Unity version 2017.2.1f1
Visual Studios version 15.5.2

When building from Unity, I have checked the C# Projects & Development mode in Build Settings.
I have unchecked “Enable Just Mode Code” in VS debugging options.
I have set the debugger type to Mixed (Managed and Native)

Hello,

Did you enable C# scripts in the build options before building the UWP project?

3342214--261008--upload_2018-1-4_10-54-39.png

Yes I have

Hi,

this is a known issue in 2017.2. We have already have a fix and it’s going out to 2017.2 patch release soon.

Unity 2017.1 and 2017.3 are not affected.