2
I use Visual Studio Code, and wanted to use your Debug in my C/C++ files. There are few BR tutorials on how to configure the debug of VS code for Linux, especially in the language I use, and as I am new to this text editor, I’m having difficulties.
The problem occurs after configured, it simply opens the debug play/stop panel, but goes straight through the breakpoints and cannot debug, also appears the following error message when using 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 don’t know how to use this Debug, I may be doing something wrong. I do not know what to do or how to proceed, if anyone can help me, since I thank you.
My VS Code Launch.json is like this:
{
"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
}
]
},
]
}
Please add more details to expand your response, such as a working code or documentation quotes.
–