title: Where is user.config loaded from during Visual Studio debugging
body: <p>I have an application that reads from a user settings file, typically stored in Users/{username}/AppData/Local/{publisher}/{app}/{version}/user.config. I want to test making changes directly to the file, not through the Visual Studio properties editor.</p>
  
  <p>I found <a href="https://stackoverflow.com/a/7069366/764371">this answer</a> to a different question that points to where the application is supposedly loading the file from, but it doesn't seem to exist when I check during a debug session in Visual Studio.</p>
  
  <p>For example, when I run the following in the Immediate window when stopped on a breakpoint, it fails to find the file.</p>
  
  <pre><code>System.IO.File.Exists(System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Configuration.ConfigurationUserLevel.PerUserRoamingAndLocal).FilePath) //returns false
  </code></pre>
  
  <p>My reason for wanting to find this file during debugging is that I have received reports of the config file being corrupted and crashing the application in production. I'm sure that I can return that file to a default state, but I want to actually reproduce the problem in a debug environment.</p>
  
  <p>How can I find the settings file loaded by Visual Studio?</p>