title: Debugger stops after async HttpClient.GetAsync() call in visual studio
body: <p>I'm trying to test the follwing http request method</p>
  
  <pre><code>public async Task&lt;HttpContent&gt; Get(string url)
      {
          using (HttpClient client = new HttpClient())
  // breakpoint
          using (HttpResponseMessage response = await client.GetAsync(url))
  // can't reach anything below this point
          using (HttpContent content = response.Content)
          {
              return content;
          }
      }
  </code></pre>
  
  <p>However, the debugger seems to be skipping the code below the 2nd comment. I'm using Visual studio 2015 RC, any ideas? I also tried checking the Tasks window and saw nothing</p>
  
  <p>Edit: Found the solution</p>
  
  <pre><code>using System;
  using System.Net.Http;
  using System.Threading.Tasks;
  
  namespace ConsoleTests
  {
      class Program
      {
          static void Main(string[] args)
          {
              Program program = new Program();
              var content = program.Get(@"http://www.google.com");
              Console.WriteLine("Program finished");
          }
  
          public async Task&lt;HttpContent&gt; Get(string url)
          {
              using (HttpClient client = new HttpClient())
              using (HttpResponseMessage response = await client.GetAsync(url).ConfigureAwait(false))
              using (HttpContent content = response.Content)
              {
                  return content;
              }
          }
      }
  }
  </code></pre>
  
  <p>Turns out that because this was a C# console app it ended after the main thread ends I guess, because after adding a Console.ReadLine() and waiting a bit, the request did return. I guessed that C# would wait until my task execute and not end before it, but I suppose I was wrong. If anybody could elaborate on why this happened it would be nice.</p>