From a6d640834eb9e9b630731e26fb69b4a79346c86c Mon Sep 17 00:00:00 2001 From: srdusr Date: Fri, 5 May 2023 23:54:03 +0200 Subject: Add options that are commented out in order to test such as host, port (specific) and detached = true --- lua/plugins/dap.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lua/plugins') 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', -- cgit v1.2.3