【发布时间】:2021-08-10 14:48:36
【问题描述】:
这是我的 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": [
{
"name": "gcc.exe - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:\\Program Files (x86)\\CodeBlocks\\MinGW\\bin\\gdb32.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: gcc.exe build active file"
}
]
}
之前这里是gdb.exe,但是说找不到,连我也找不到.. 所以我把 gdb32.exe 放在我能找到的地方,但它仍然没有调试任何东西
我现在厌倦了这个问题......
代码块说请指定可执行路径,找不到
请帮忙,谢谢
【问题讨论】:
-
如果您的动机是像使用 gdb 一样在 Code::Blocks 中调试 c/c++ 代码,您可以使用他们内置的调试工具。您可以在这里找到一些基本指南:dummies.com/programming/c/…
-
@AnkushPandit 那是我不能做的,伙计
标签: c++ c visual-studio-code gdb mingw