使用VS代码调试C.

时间:2017-08-08 19:15:17

标签: c json visual-studio-code

我在设置VS Code以调试C时遇到了麻烦,尽管我已按照此处的说明进行操作:https://godbolt.org/(mx0的答案)。 在运行{ "name": "(Windows) Launch", "type": "cppvsdbg", "request": "launch", "program": "${workspaceRoot}\\C\\test.c", "args": [], "stopAtEntry": false, "cwd": "${workspaceRoot}", "environment": [], "externalConsole": true }, { "name": "(Windows) Attach", "type": "cppvsdbg", "request": "attach", "processId": "${command:pickProcess}" } 任务时,它会在输出中显示:

  

'Build.bat'不被识别为内部命令或外部命令   可执行程序或批处理文件。

此外,调试失败并显示此错误:

  

未知错误:0x800700c1

我的task.json文件如下所示:

{  
   // See https://go.microsoft.com/fwlink/?LinkId=733558
   // for the documentation about the tasks.json format
   "version": "0.1.0",
   "windows": {
      "command": "build.bat",
      "isShellCommand": true,
      "showOutput": "always"
   }
}

而且,我的var idCert: SecCertificate? = nil var idKey: SecKey? = nil SecIdentityCopyCertificate(id, &idCert) SecIdentityCopyPrivateKey(id, &idKey) SecKeychainItemDelete(idCert as! SecKeychainItem) SecKeychainItemDelete(idKey as! SecKeychainItem) 看起来像这样:

&

非常感谢任何帮助。

0 个答案:

没有答案