diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-03-18 23:57:59 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-03-18 23:57:59 +0200 |
| commit | d861abc849918a83581955d3046ca2c3b3591d83 (patch) | |
| tree | 0147c78de72c16571c26d6d0c9d9924732bdf2e4 /lua/plugins | |
| parent | 04fb00bcd5bf415137e3b5ee7c4f92eaf235cb5c (diff) | |
| download | dotfiles-d861abc849918a83581955d3046ca2c3b3591d83.tar.gz dotfiles-d861abc849918a83581955d3046ca2c3b3591d83.zip | |
Fixed dap errors
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/dap.lua | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/lua/plugins/dap.lua b/lua/plugins/dap.lua index 1f9a8f1..d858760 100644 --- a/lua/plugins/dap.lua +++ b/lua/plugins/dap.lua @@ -1,5 +1,5 @@ local dap = require('dap') -local home_path = vim.fn.expand('$HOME') +--local home_path = vim.fn.expand('$HOME') -- Unsafe Defaults local mi_mode = "" @@ -17,10 +17,21 @@ else error("Unsupported OS") end +--dap.adapters.cppdbg = { +-- type = "server", +-- port = "${port}", +-- executable = { +-- command = vim.fn.stdpath("data") .. '/mason/bin/dlv', +-- args = { "dap", "-l", "127.0.0.1:${port}" }, +-- }, +-- --command = home_path .. '/extension/debugAdapters/bin/OpenDebugAD7', +--} + +-- cpp dap.adapters.cppdbg = { - id = 'cppdbg', - type = 'executable', - command = home_path .. '/extension/debugAdapters/bin/OpenDebugAD7', + type = 'executable', + command = 'OpenDebugAD7', + id = 'cppdbg', } dap.configurations.cpp = { @@ -32,9 +43,9 @@ dap.configurations.cpp = { return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file') end, cwd = '${workspaceFolder}', - stopAtEntry = true, - MIMode = mi_mode, - miDebuggerPath = mi_debugger_path + --stopAtEntry = true, + --MIMode = mi_mode, + --miDebuggerPath = mi_debugger_path } } |
