title: How to read input when debugging GO in Visual Studio Code?
body: <p>I want to debug a Go program in Visual Studio Code 1.24.0 which goes like this:</p>
  
  <pre><code>package main
  
  import (
     "fmt"
  )
  
  func main() {
   fmt.Println("Hello World")
   var input int
   fmt.Scanf("%d", &amp;input)
   fmt.Printf("Hello %v", input)
  }
  </code></pre>
  
  <p>When start debugging, the program waits for input. I tried giving input via Debug Console, but it didn't work. Properties like externalConsole don't seem to work in launch.json for Go. Any inputs? </p>