aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/dap.lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-05-05 23:54:03 +0200
committersrdusr <trevorgray@srdusr.com>2023-05-05 23:54:03 +0200
commita6d640834eb9e9b630731e26fb69b4a79346c86c (patch)
tree06f5288c535786e30758b79d2f7653154bcc3491 /lua/plugins/dap.lua
parente2d8386915af4517ecc856799851d5f1bd866ba9 (diff)
downloaddotfiles-a6d640834eb9e9b630731e26fb69b4a79346c86c.tar.gz
dotfiles-a6d640834eb9e9b630731e26fb69b4a79346c86c.zip
Add options that are commented out in order to test such as host, port (specific) and detached = true
Diffstat (limited to 'lua/plugins/dap.lua')
-rw-r--r--lua/plugins/dap.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/lua/plugins/dap.lua b/lua/plugins/dap.lua
index c4aec62..9b790d9 100644
--- a/lua/plugins/dap.lua
+++ b/lua/plugins/dap.lua
@@ -48,12 +48,15 @@ dap.adapters.cppdbg = {
dap.adapters.codelldb = {
type = 'server',
port = '${port}',
+ --host = '127.0.0.1',
+ --port = 13000, -- 💀 Use the port printed out or specified with `--port`
executable = {
--command = os.getenv("HOME") .. '/apps/codelldb/extension/adapter/codelldb',
--command = vim.env.HOME .. "/.vscode-oss/extensions/vadimcn.vscode-lldb-1.9.0-universal/adapter/codelldb",
command = os.getenv("HOME") .. "/.vscode-oss/extensions/vadimcn.vscode-lldb-1.9.0-universal/adapter/codelldb",
args = {'--port', '${port}'},
- }
+ },
+ --detached = true,
}
dap.adapters.lldb = {
@@ -76,12 +79,15 @@ dap.configurations.cpp = {
end,
stopAtEntry = true,
args = {},
- runInTerminal = false,
+ runInTerminal = true,
+ --runInTerminal = false,
+ --console = 'integratedTerminal',
+
--MIMode = 'gdb',
--miDebuggerServerAddress = 'localhost:1234',
--miDebuggerPath = 'gdb-oneapi',
--miDebuggerPath = '/usr/bin/gdb',
- --externalConsole = true,
+ externalConsole = true,
--setupCommands = {
-- {
-- text = '-enable-pretty-printing',