首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我正在使用MinGw编译器,每当我试图调试代码时,错误就会失败。以及为什么它的位置是cygwin的,因为我正在使用mingw。

我正在使用MinGw编译器,每当我试图调试代码时,错误就会失败。以及为什么它的位置是cygwin的,因为我正在使用mingw。
EN

Stack Overflow用户
提问于 2020-05-29 08:06:23
回答 1查看 285关注 0票数 0
代码语言:javascript
复制
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target: 
Debug
Adding source dir: H:\C Language\Character-Strings-(Demonstration)-Utilizing-common-string-functions-Source-code\
Adding source dir: H:\C Language\Character-Strings-(Demonstration)-Utilizing-common-string-functions-Source-code\
Adding file: H:\C Language\Character-Strings-(Demonstration)-Utilizing-common-string-functions-Source-code\bin\Debug\CommonStringFunctionsExample.exe
Changing directory to: "H:/C Language/Character-Strings-(Demonstration)-Utilizing-common-string-functions-Source-code/."
Set variable: PATH=.;C:\Program Files\mingw-w64\mingw64\bin;C:\Program Files\mingw-w64\mingw64;C:\Cygwin\bin;C:\Cygwin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;F:\runtime\win64;F:\tools\pcb\bin;F:\tools\fet\bin;F:\tools\specctra\bin;F:\tools\bin;F:\tools\PSpice\Library;F:\tools\Capture;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin;F:\bin;C:\Program Files\Git\cmd;C:\Users\saihi\AppData\Local\Microsoft\WindowsApps;C:\Users\saihi\Anaconda3\Library\ssl;C:\ProgramData\saihi\atom\bin;C:\Users\saihi\AppData\Local\Programs\Microsoft VS Code\bin
Starting debugger: C:\Program Files\mingw-w64\mingw64\bin\gdb.exe -nx -fullname -quiet  -args "H:/C Language/Character-Strings-(Demonstration)-Utilizing-common-string-functions-Source-code/bin/Debug/CommonStringFunctionsExample.exe"
done
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 8.1
Starting the debuggee failed: No executable specified, use `target exec'.
Debugger finished with status 0
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-05-29 11:22:26

您将需要GDB来调试使用MinGW的gcc构建的代码。

下面是一个解释如何实现的链接:https://code.visualstudio.com/docs/cpp/cpp-debug

而且,看起来您使用的是旧版本(GDB8.1,而当前版本是9.2)。查看http://winlibs.com/以获得MinGW-w64的最新版本,其中包括gdb9.2。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62081392

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档