title: What is XAML generated break on unhandled exception and app.g.i.cs file
body: <p>I am new to windows app development. I am trying to execute a solution on my local machine using x64 platform. But whenever I execute a Buttom_Click event I am getting this exception </p>
  
  <pre><code>#if DEBUG &amp;&amp; !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
              UnhandledException += (sender, e) =&gt;
              {
                  if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();
              };
  #endif
  </code></pre>
  
  <p>in App.g.i.cs file.     </p>
  
  <p>I am getting this exception when debugger hits the variable 'icon' below</p>
  
  <pre><code> private async void Button_Click(object sender, RoutedEventArgs e)
          {
              RootObject myWeather =
                  await OpenWeatherMapProxy.GetWeather(20.0,30.0);
  
              string icon = String.Format("ms-appx:///Assets/Weather/{0}.png", myWeather.weather[0].icon);
              ResultImage.Source = new BitmapImage(new Uri(icon, UriKind.Absolute));
              ResultTextBlock.Text = myWeather.name + " - " + ((int)myWeather.main.temp).ToString() + " - " + myWeather.weather[0].description;
          }
  </code></pre>
  
  <p>It would be helpful if anyone can explain how to get rid of this exception and what is App.g.i.cs file.</p>