title: Weird Slice Pattern In Debug Mode - Go and Visual Studio Code
body: <p>So it's not a huge deal because I end up with the result I want but I'm wondering if anyone knows why my slice goes through a back and forth pattern when I'm working with the debugger in visual studio code.</p>
  <p>Here is what I have:</p>
  <pre><code>
                  partialKey := code + id + service
                  state:=&quot;CA&quot;
                  clientId := &quot;test&quot;
  
                  var combo = []string{partialKey + clientId + state,
                      partialKey + clientId + util.Constants.DEFAULT_STATE
                      partialKey + util.Constants.DEFAULT_ID + state,
                      partialKey + util.Constants.DEFAULT_ID + util.Constants.DEFAULT_STATE,
                  }
  </code></pre>
  <p>When I debug the code and click the step over button it does this weird pattern starting with the first line of the slice (var combo =... so I'll call that line1 and the last line will be line4).
  line1
  line2
  line1
  line2
  line3
  line2
  line3
  line4
  line3
  line4</p>
  <p>then after that i get the expected four item slice with the correct format so it's not really an issue but i'm just curious if this is a Go thing Or is this caused by the visual studio code debugger and can someone tell me why one or the other does this?</p>