vscode debug golang时间:2023-09-13 23:06:50 基础的配置网上的教程很多,这里只是记录自己碰到的坑。 官方文档 https://code.visualstudio.com/docs/editor/debugging#_launch-configurations 如果你的启动命令是 go run --config=config-dev.toml -host=127.0.0.1 或者你还需要加载一些 C 的动态库 xxx.so 那么你的配置就是这样的