title: Inspect dump files from UWP app
body: <p>First I enabled saving of dump files on a Windows 10 Mobile phone:</p>
  
  <blockquote>
    <p>Settings > Update &amp; Security > For developers > Save this many crash dumps: 3</p>
  </blockquote>
  
  <p>Then I debugged an app which throwed an exception. I continued the debugging after stop. After disconnecting and connecting the mobile phone again, I was able to access the dump file stored under <code>Windows phone\Phone\Documents\Debug</code> directory. The file is called</p>
  
  <p><code>FPCL.WIndows - a736c773-c105-4b30-a799-4bf317872f5e with exception C000027B on 5-03-2016 12.11.dmp</code></p>
  
  <p>and has about 140 MB!</p>
  
  <p>I copied the file to the <code>bin</code> directory of my UWP app. Afterwards I opened it as file in Visual Studio 2015 (in the same project). Now I can see the <em>Dump Summary</em> and I have the following buttons:</p>
  
  <ul>
  <li>Debug with Managed Only</li>
  <li>Debug with Mixed</li>
  <li>Debug with Native Only</li>
  <li>Set symbol paths</li>
  <li>Copy all to clipboard</li>
  </ul>
  
  <hr>
  
  <p>If I run <em>Debug with Managed Only</em> I get</p>
  
  <blockquote>
    <p>A fatal exception was caught by the runtime. See $stowedexception in the Watch window to view the original exception information.</p>
  </blockquote>
  
  <p>and on clicking <em>Break</em> I get</p>
  
  <blockquote>
    <p>No compatible code running. The selected debug engine does not support any code executing on the current thread (e.g. only native runtime code is executing).</p>
  </blockquote>
  
  <p>In the <em>Watch 1</em> window I see the following</p>
  
  <blockquote>
    <p>Name: {CLR}$stowedexception<br>
    Value: {"The method or operation is not implemented."}<br>
    Type: System.NotImplementedException</p>
  </blockquote>
  
  <p>This should be the exception I have thrown in my app. When I open this node and look under <em>StackTrace</em> I can get a line number. On pressing <em>Continue</em> I get</p>
  
  <blockquote>
    <p>The debugger cannot continue running the process. This operation is not supported when debugging dump files.</p>
  </blockquote>
  
  <p>So I can only stop it.</p>
  
  <hr>
  
  <p>If I run <em>Debug with Mixed</em> I get again</p>
  
  <blockquote>
    <p>A fatal exception was caught by the runtime. See $stowedexception in the Watch window to view the original exception information.</p>
  </blockquote>
  
  <p>and on clicking <em>Break</em> I get</p>
  
  <blockquote>
    <p>kernelbase.pdb not loaded
    kernelbase.pdb contains the debug information required to find the source for the module KERNELBASE.dll
    Module Information: Version: 10.0.10586.218 (th2_release.160401-1800) Original Location: KERNELBASE.dll
    Try one of the following options: Change existing PDB and binary search paths and retry: Microsoft Symbol Servers</p>
  </blockquote>
  
  <p>Here I can either press <em>Load</em> or <em>New</em>. So the kernelbase.pdb isn't found under the given location. Should it exists? Where should I find it?</p>
  
  <p>In the <em>Watch 1</em> window I see the same as above and I can only stop it.</p>
  
  <hr>
  
  <p>If I run <em>Debug with Native Only</em> I get</p>
  
  <blockquote>
    <p>Unhandled exception at 0x76ECDF95 (combase.dll) in FPCL.WIndows - f736c883-f105-4d30-a719-4bf328872f5e with exception C000027B on 5-03-2016 12.11.dmp: 0xC000027B: Anwendungsinterne Ausnahme (parameters: 0x075C6838, 0x00000002).</p>
  </blockquote>
  
  <p>and on clicking <em>Break</em> I get the same missing kernelbase error as above, but here in the <em>Watch 1</em> window the <em>Value</em> is <code>Unable to evaluate the expression</code>. So I can only stop it.</p>
  
  <hr>
  
  <p>According to this <a href="https://stackoverflow.com/a/4699467/426227">post</a> I should be able to inspect the source code and find the cause. But how is such a UWP dump file inspected correctly?</p>