Replies: 3 comments
-
Are there some debug flags I can activate so I can see what is being passed to codelldb and, possibly, the json file that codelldb works with? Does my question pertain to this package or to codelldb itself? Thanks. |
Beta Was this translation helpful? Give feedback.
-
I slightly modified the syntax to: env = function()
local variables = {}
for k, v in pairs(vim.fn.environ()) do
variables[string.format("%s",k)] = string.format("%s",v)
end
return variables
end, and it worked for me. |
Beta Was this translation helpful? Give feedback.
-
2 years too late but is this what you were looking for? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I tried using the snippet https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#environment-variables for codelldb but I keep getting the a parse error
Could not parse launch configuration: invalid type: sequence, expected a map
.I also tried
but that doesn't work either. I get the error
The "program" attribute is required for launch
. The program attribute is set correctly; it certainly works when I comment out theenv
section.Could you please give an example of how to set environment variables for the debug run?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions