Passing arguments to DAP #420
-
I am trying to debug my cpp program that requires to be run on dGPU (for OpenCL). When I debug with gdb i would just call gdb with my dGPU render-offload prefix Is there a way to do this with nvim-dap? I am using vscode-cpptools with Gdb-MI. What I have tried so far is pre-pending prime-run in cpp-tools adapter settings dap.adapters.prime = {
-- stuff
command = "/usr/bin/prime-run " .. actualDAPCommand which fails to launch. I have also tried prepending the Is there a way to declare this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Did you try using the The command within the adapter configuration needs to start the debug-adapter, not the debugger. As shown in the dap.txt help:
The debug adapter in your case is
|
Beta Was this translation helpful? Give feedback.
Did you try using the
miDebuggerPath
andmiDebuggerArgs
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:
The debug adapter in your case is
vscode-cpptools
and the debugger isgdb
.dap.adapters
defines how to st…