While I was debugging a c code, my Vscode debugger for gcc showed a error like this: 'Unable to open 'test.c': Unable to read file(Error:File not found(C:\mycode\C:\mycode\test.c))'. So why my file path exists a repetition? And how to fix it?
I had only installed these plugins: C/C++ C++ Intellisense
Change your tasks.json
from "args":[ "${file} ]
to ${relativeFile}
,and delete "cwd"
or change it to ${workspaceFolder}
.
So just like this, when I click the tips, I got the error.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.