![](/img/trans.png)
[英]Trying to Debug C code in VSC? Unexpected GDB output from command "-exec-run"
[英]VS Code: Unexpected GDB output from command “-exec-run”
我正在嘗試在 windows 10 機器中使用 VS 代碼來調試 c 程序。
當我按 F5(調試控制台)時,會出現以下錯誤消息
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
=cmd-param-changed,param="args",value="2>CON 1>CON <CON"
ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run".
Error creating process {my program path}\testing.exe, (error 5).
The program {my program path}\testing.exe has exited with code 42 (0x0000002a).
我試過:
我發現與無錯誤計算機唯一不同的是終端中的命令
'c:\Users\{my name}\.vscode\extensions\ms-vscode.cpptools-1.2.0\debugAdapters\bin\WindowsDebugLr=Microsoft-MIEngine-Error-woaq1zfx.ino'
'--pid=Microsoft-MIEngine-Pid-cktvzb1f.ldz'
'--dbgExe=C:\MinGW\bin\gdb.eauncher.exe'
'--stdin=Microsoft-MIEngine-In-ousjkx2v.fa4'
'--stdout=Microsoft-MIEngine-Out-3zwxjow2.lxd'
'--stderr=Microsoft-MIEngine-Error-woaq1zfx.ino'
'--pid=Microsoft-MIEngine-Pid-cktvzb1f.ldz'
'--dbgamming> Exe=C:\MinGW\bin\gdb.exe'
'--interpreter=mi
'c:\Users\{my name}\.vscode\extensions\ms-vscode.cpptools-1.2.0\debugAdapters\bin\WindowsDebugLauncher.exe'
'--stdin=Microsoft-MIEngine-In-dbis1iss.4uo'
'--stdout=Microsoft-MIEngine-Out-2k2qns13.5jp'
'--stderr=Microsoft-MIEngine-Error-ixytwn1h.hzm'
'--pid=Microsoft-MIEngine-Pid-kqpv2wcw.1oc'
'--dbgExe=C:\MinGW\bin\gdb.exe'
'--interpreter=mi'
我找到了原因,MCAfee 將 output 識別為病毒。 卸載 MCAfee 后問題解決
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.