I use the Visual Studio Code, and wanted to use its Debug in my C / C ++ files. There are a few BR tutorials on how to set up VS code debugging for Linux, even more in the language I use, and since I'm new to this text editor, I'm struggling.
The problem occurs after configuring it, it simply opens the debug play / stop panel, but passes straight from the breakpoints and I can not debug, the following error message also appears when using the debug:
Unable to open 'libc-start.c': File not found (file: ///build/glibc-Cl5G7W/glibc-2.23/csu/libc-start.c).
I'm new to VS Code and I do not know how to use this Debug right, maybe I'm doing something wrong. I do not know what to do or how to proceed, if anyone can help me, thank you already.
MyVSCodeLaunch.jsonlookslikethis:
{"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/draft",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
]
}