Skip to content

I can't seem to start a GDB session correctly #1262

Answered by TBPLtd
TBPLtd asked this question in Q&A
Discussion options

You must be logged in to vote

After reading the DAP spec and the GDB manual, I now understand what is required.
Two dap configuration variables 'cwd' and 'program' were being incorrectly set.
The solution is to set 'cwd' to the directory of the executable to be debugged and to set 'program' to just the executable file name.
So for the above these would be

cwd = "D:\\Users\\Graham\\Projects\\C++\\Sandbox\\bin",
program = "Sandbox.exe",

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TBPLtd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant