在Ubuntu中安装glibc库:
sudo apt install glibc-source
cd /usr/src/glibc/
sudo tar -xvf glibc-[VERSION].tar.xz
其中,[VERSION]为版本号。
然后在launch.json文件中加入以下代码:
"sourceFileMap":
{
"/build/glibc-ZN95T4": "/usr/src/glibc"
}
注意:glibc-后面的内容(ZN95T4)需要根据报错提示更改。