我通过vscode调试代码,控制台立即显示“ hello and”, 程序退出0,导致我无法输入a1和a2,那么如何设置vscode? p>
如下所示的go代码
package main
import "fmt"
func main(){
fmt.Println("Please enter your firstname and lastname")
var a1,a2 string
fmt.Scan(&a1,&a2) // it don't stop to wait my input data.
fmt.Println("hello ",a1," and ",a2)
}