title: Problem while debugging c# code in Visual studio code
body: <p>I have this method</p>
  <pre><code>public static void Main(string[] args)
  {
      var numbers = new List&lt;int&gt; {1, 2, 3, 4};
  }
  public static int GetSmallest(List&lt;int&gt; list)
  {
      var min = list[0];
      for (var i = 1; i &lt; list.Count; i++)
      {
          if (list[i] &gt; min)
          min = list[i];
      }
      return min;
  }
  </code></pre>
  <p>When changing the condition to list[I] &lt; min while in debug mode the min variable in the watch window is 2 but it is supposed to be 1. Any idea why changing code doesn't affect anything until I run the program again?
  <a href="https://imgur.com/a/FOOQjmy" rel="nofollow noreferrer">Video showing problem.</a></p>