VSCode 调试 stopAtEntry 或者到最后一步报错:
无法打开“libc-start.c”: 无法读取文件'vscode-remote://ssh-remote+xmake/build/glibc-S9d2JN/glibc-2.27/csu/libc-start.c'
系统中没有glibc源码可供调试
user@/usr/src $ wget http://ftp.gnu.org/gnu/glibc/glibc-2.27.tar.gz
user@/usr/src $ sudo tar -zxf glibc-2.27.tar.gz
{
"version": "0.2.0",
"configurations": [
{
"name": "launch after cmake build",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "CMake Build",
"miDebuggerPath": "/usr/bin/gdb",
"sourceFileMap": {"/build/glibc-S9d2JN": "/usr/src/glibc"}
}
]
}