这个错误其实非常好解决,在非 main 包目录下面,vscode 是无法正常启动 Debug。只需要在是 package main 的文件上按下,F5,便可正常 Debug

更多推荐

vscode F5 Debug 启动报错 could not launch process: not an executable file