Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork247
-
Hi, I tried using the snippethttps://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#environment-variables for codelldb but I keep getting the a parse error I also tried env= {var1="value1",var2="value2",}, but that doesn't work either. I get the error Could you please give an example of how to set environment variables for the debug run? Thanks! |
BetaWas this translation helpful?Give feedback.
All reactions
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. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I slightly modified the syntax to: env=function()localvariables= {}fork,vinpairs(vim.fn.environ())dovariables[string.format("%s",k)]=string.format("%s",v)endreturnvariablesend, and it worked for me. |
BetaWas this translation helpful?Give feedback.
All reactions
-
2 years too late but is this what you were looking for? |
BetaWas this translation helpful?Give feedback.
