本文默认你使用的是CodeRunner来运行C++,并且能成功在VScode上运行C++程序
配置C++调试
安装C/C++ extension,添加配置 C/C++: (lldb) Launch
配置launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlin
1