vscode断点停在错误的文件

阅读量: searchstar 2023-04-25 21:55:57
Categories: Tags:

launch.json中加入:

"sourceFileMap":{
"/项目/绝对/路径": {
"editorPath": "/项目/绝对/路径",
"useForBreakpoints": true
}
},

来源:https://github.com/microsoft/vscode-cpptools/issues/6754#issuecomment-756964069