小编Leo*_*iro的帖子

在 Windows 上使用 Cygwin64 编译器和调试器为 C 设置 VS Code(错误:无法启动调试)

我正在尝试设置 VSCODE 以使用 Cygwin64 在 Windows 上调试C 程序。

我使用了 @stephw 建议的配置(在 Windows 上使用 Cygwin64 编译器和调试器设置 C 的 VS 代码),但它对我不起作用。

我无法评论原始帖子,因为我没有足够的声誉点,并且我无法回答,因为我不知道原始问题的答案。

脚本的名称是dirigir.c,我可以编译。创建文件 dirigir.exe。但...

我收到以下错误:

错误:无法开始调试。命令“-exec-run”出现意外的 GDB 输出。创建进程 /usr/bin/E:\cloud\Backup\Trabalhos com 程序\C 和 Cpp\scripts/e:\cloud\Backup\Trabalhos com 程序\C 和 Cpp\scripts\dirigir.exe 时出错,(错误 2) 。

由于某种原因,/usr/bin/ ... /被插入到路径中,并且 .exe 的路径是重复的

我的launch.json文件是推荐的:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": …
Run Code Online (Sandbox Code Playgroud)

c debugging cygwin visual-studio-code

5
推荐指数
1
解决办法
3816
查看次数

标签 统计

c ×1

cygwin ×1

debugging ×1

visual-studio-code ×1