Closed thomascookandroid closed 3 months ago
Check the logs and make sure you're using a gdb variant that includes dap support. Some distributions strip it out.
I have just built gdb 14.1 from source. That has DAP support, and yet this issue persists. In addition, no log file is getting generated in the working directory, even though I supply "--eval-command=set logging enabled", so I have no way to provide further information.
Is there any advice you can give me on how to proceed?
gdb --ver
GNU gdb (GDB) 14.1
I found the nvim-dap logs which shows that there was an error:
[ ERROR ] 2024-08-08T11:43:13Z+0100 ] ...omas/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1466 ] "stderr" {
args = { "--interpreter=dap", "--eval-command=set logging enabled on" },
command = "gdb",
type = "executable"
} "Interpreter `dap' unrecognized\n"
The error is stating that gdb is reporting Interpreter 'dap' unrecognised....
Does this mean the gdb variant I have made from source and installed does not support DAP? From all the reading I have done, 14.1 was the version of gdb that actually added DAP support...
Please advise
The error is stating that gdb is reporting Interpreter 'dap' unrecognised....
Does this mean the gdb variant I have made from source and installed does not support DAP?
Yes that's what it means
From all the reading I have done, 14.1 was the version of gdb that actually added DAP support...
It added DAP support but the feature is optional and can be excluded. You need to make sure to use a build that includes it.
I see, apologies. Should have RTFM
Debug adapter definition and debug configuration
Debug adapter version
Not sure how to determine
Steps to Reproduce
int main(void) { printf("To C, or not to C: that is the question.\n"); return 0; }