Anonymous
Отладчик GDB не работает в VSCODE
Сообщение
Anonymous » 22 июн 2025, 12:35
Я пытаюсь сделать свой проект в Vscode для работы на Lubuntu. Когда я запускаю отладчик, который я получаю: command 'MakeFile.makeBasedIrectory' не найдено
Это моя задача.
Код: Выделить всё
{
"version": "2.0.0",
"tasks": [
{
"label": "make",
"type": "shell",
"command": "make",
"args": [],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
}
]
}
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug with Makefile",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/myELF",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "make",
"miDebuggerPath": "/usr/bin/gdb",
"logging": {
"engineLogging": true
}
}
]
}
< /code>
Это Makefile: < /p>
all:
gcc -g -m32 -Wall myELF.c -o myELF
clean:
rm -f myELF
Есть идеи, почему это происходит и как это исправить?>
Подробнее здесь:
https://stackoverflow.com/questions/796 ... -in-vscode
1750584911
Anonymous
Я пытаюсь сделать свой проект в Vscode для работы на Lubuntu. Когда я запускаю отладчик, который я получаю: command 'MakeFile.makeBasedIrectory' не найдено Это моя задача.[code]{ "version": "2.0.0", "tasks": [ { "label": "make", "type": "shell", "command": "make", "args": [], "group": { "kind": "build", "isDefault": true }, "problemMatcher": [ "$gcc" ] } ] } { "version": "0.2.0", "configurations": [ { "name": "Debug with Makefile", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/myELF", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ], "preLaunchTask": "make", "miDebuggerPath": "/usr/bin/gdb", "logging": { "engineLogging": true } } ] } < /code> Это Makefile: < /p> all: gcc -g -m32 -Wall myELF.c -o myELF clean: rm -f myELF [/code] Есть идеи, почему это происходит и как это исправить?> Подробнее здесь: [url]https://stackoverflow.com/questions/79675033/gdb-debugger-not-running-in-vscode[/url]