Closed samueldavidthomas closed 2 years ago
I think program
is supposed to be target
Now you need to change target to the application you want to debug relative to the cwd. (Which is the workspace root by default https://github.com/WebFreak001/code-debug
{
"type": "gdb",
"request": "launch",
"name": "Launch Program",
"target": "./bin/executable",
"cwd": "${folder}",
}
That works perfectly - thank you so much!
Just for future user stumbling here, because they have issues with GDB.
The config json is "documented" here: https://github.com/WebFreak001/code-debug/blob/master/src/gdb.ts#L7
Notably "arguments"
allows to pass a full string to your program as arguments.
With LSP-json you can get a list of parameters and validation checking for most adapters by triggering auto completion after filling in type/name/request
Attempting to run the debugger using g++ and gdb creates this error:
I'm running nodeJS version 12.15.0, Windows 10. I copied the Compile task from the cpp example page, replacing
clang
withg++
: