Skip to content

Passing arguments to DAP #420

Answered by mfussenegger
ranjithshegde asked this question in Q&A
Discussion options

You must be logged in to vote

Did you try using the miDebuggerPath and miDebuggerArgs options from vscode-cpptools launch.json reference?

The command within the adapter configuration needs to start the debug-adapter, not the debugger. As shown in the dap.txt help:

DAP-Client ----- Debug Adapter ------- Debugger ------ Debugee
(nvim-dap)  |   (per language)  |   (per language)    (your app)
            |                   |
            |        Implementation specific communication
            |        Debug-adapter and debugger could be the same process
            |
     Communication via debug adapter protocol

The debug adapter in your case is vscode-cpptools and the debugger is gdb.

dap.adapters defines how to st…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ranjithshegde
Comment options

Answer selected by ranjithshegde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants