title: Visual Studio 2015: I can't debug and use breakpoints in Release mode
body: <p>I have developed an <strong>UWP app</strong> that uses a lot of <strong>NuGet packages</strong> (<em>MvvmLight, SQLite, ...</em>) and other <strong>resources</strong> (<em>Syncfusion controls</em>).</p>
  
  <p>I encounter a bug with the <strong>Store</strong> app, which is already published for tests, that is not present when I build the app in "<strong>Debug</strong>" mode.</p>
  
  <p>So, I've tried to debug in "<strong>Release</strong>" mode, with the checked options "<strong>Compile with .NET Native tool chain</strong>" and "<strong>Optimize code</strong>". The build ends successfully, but I encounter an exception with a Syncfusion control (<em>SfDataGrid</em>) on the main page of the app. I would like use <strong>breakpoints</strong> to understand what happens, but they are deactivated as I build the app in "Release" mode.</p>
  
  <p>If I build the app in "<strong>Debug</strong>" mode, with the same options checked ("<strong>Compile with .NET Native tool chain</strong>" and "<strong>Optimize code</strong>"), I don't encounter the same bug with the Syncfusion control, and the defined <strong>breakpoints</strong> are well keeped.</p>
  
  <p>So I don't see how I could fix my problem:</p>
  
  <ul>
  <li>if I create a <strong>new solution</strong> and built it in "Release" mode, the breakpoints are well keeped, and I can debug the code</li>
  <li>if I build <strong>Syncfusion samples</strong> in "Release" mode, it's the same thing: the breakpoints are well keeped, and I can debug the code</li>
  <li>I have compared the <strong>"build" parameters</strong> of the app and the other ones: they are the same</li>
  <li>I have also looked at the "<strong>Just-in-Time</strong>" page, in the Visual Studio "<strong>options</strong>". I've got the following error: "<strong><em>Another debugger has registered itself as the Just-In-Time debugger. To repair, enable Just-In-Time debugging or run Visual Studio repair.</em></strong>". Ive tried to "repair" Visual Studio, but it's always the same thing...</li>
  </ul>
  
  <p>Here is the "Options" settings:
  <a href="https://i.stack.imgur.com/cg0gs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cg0gs.png" alt="enter image description here"></a></p>
  
  <p>And the result in solution, where breakpoints are disabled:
  <a href="https://i.stack.imgur.com/gESo9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gESo9.png" alt="enter image description here"></a></p>
  
  <p><strong><em>Would you have any explanation? How could I do to debug my app in "Release" mode?</em></strong></p>
  
  <p><strong>[Edit 1]: add some details after further investigations</strong></p>
  
  <p>My app is based on a "<strong>template</strong>" like Template10, called <strong>Nentang</strong>. The structure of the project is the same, and they share a big part of references or NuGets packages.
  But if I compare the build result of the "blank" Nentang and my solution, there are some differences that I don't understand:</p>
  
  <ul>
  <li>as explained, on my app, the breakpoints and debug don't work in "Release" mode, and I can see that almost all modules don't have any "<strong>Symbol File</strong>":</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/NJjSQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NJjSQ.png" alt="Modules-my app"></a></p>
  
  <p>=> only "<strong>ntdll.dll</strong>" and "<strong>KernelBase.dll</strong>" are linked to thier pdb file in a local directory: "<em>C:\Users\myname\AppData\Local\Temp\SymbolCache</em>"</p>
  
  <ul>
  <li>on the "blank" Nentang app, the breakpoints and debug work well in "Release" mode, and I can see that almost all modules have a "<strong>Symbol File</strong>":</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/UXKve.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UXKve.png" alt="Modules-Nentang"></a></p>
  
  <p>=> allmost <strong>half of the modules</strong> are linked to the same file in the "<strong>project</strong>" directory: "<em>C:\Projects\Samples...\Nentang.UWP\bin\x64\Release\AppX\Nentang.UWP.pdb</em>"</p>
  
  <p>=> another <strong>quarter of the modules</strong> are linked to the same file of a "<strong>system</strong>" directory: "<em>C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.NET.Native.Framework.1.3\1.3\x64\ret\Native\SharedLibrary.pdb</em>"</p>
  
  <p>=> the other modules are not linked to a Symbol File: it's the case of "<strong>ntdll.dll</strong>" and "<strong>KernelBase.dll</strong>"</p>
  
  <p><strong><em>How could I restore the "Symbol files" of my project?</em></strong></p>
  
  <p>I have also remarked a "strange" parameter in the properties of my solution, that is not present is the Nentang properties:
  <a href="https://i.stack.imgur.com/E9wiz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E9wiz.png" alt="SolutionProperties"></a>
  There is this parameter: "<em>f:\dd\ndp\fxcore\CoreRT\src\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs</em>"</p>
  
  <p><strong><em>What does it mean? Could it explain my problem?</em></strong></p>