为什么我这个把C++文件从桌面移动的D盘,就不能调试了,我是把配置文件一切移过去的,但是调试不了,在C盘就可以。
将c_cpp_properties.json内容替换为(替换的地址需要包含你的CPP文件):
{
"configurations": [
{
"browse": {
"databaseFilename": "",
"limitSymbolsToIncludedHeaders": true
},
"includePath": [
"/opt/ros/kinetic/include/**",
"/usr/include/**",
"/usr/lib/**",
"/usr/local/include",
"${workspaceFolder}/**"
],
"name": "ROS",
"defines": [],
"compilerPath": "/usr/bin/g++",
"cStandard": "gnu17",
"cppStandard": "c++17",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}
具体可以参考https://blog.csdn.net/FRIGIDWINTER/article/details/121972137?spm=1001.2014.3001.5502
如有帮助,希望采纳