VScode配置.vscode文件遇到如下问题,简单的输出hello world的C++程序可运行,但调试报错,怎么办?

简单的输出hello world的C++程序可运行,但调试报错,怎么办?

img

对路径“D:\Jormungandar\VScode\CodeField\CODE_Cpp\CppSingle.vscode”的访问被拒绝。
所在位置 行:1 字符: 1

  • gcc ${D:/Jormungandar/VScode/CodeField/CODE_Cpp/CppSingle/.vscode/tas ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : PermissionDenied: (D:\Jormungandar...pSingle.vscode:String) [], UnauthorizedAccessException
    • FullyQualifiedErrorId : GetContentReaderUnauthorizedAccessError

终端进程“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command gcc ${D:/Jormungandar/VScode/CodeField/CODE_Cpp/CppSingle/.vscode/tasks.json} -o ${D:/Jormungandar/VScode/CodeField/CODE_Cpp/CppSingle/.vscode}\bin${tasks}.exe -g -Wall -static-libgcc -fexec-charset=GBK -std=c11”已终止,退出代码: 1。