nvim: Connect to remote session with lldb-dap
This commit is contained in:
parent
d3f8b0dc54
commit
acd8a470fb
2 changed files with 15 additions and 17 deletions
|
@ -1,4 +1,4 @@
|
||||||
autocmd colorscheme * highlight EndOfBuffer guibg=NONE ctermbg=NONE
|
autocmd colorscheme * highlight EndOfBuffer guibg=NONE ctermbg=NONE
|
||||||
autocmd colorscheme * highlight Normal guibg=NONE ctermbg=NONE
|
autocmd colorscheme * highlight Normal guibg=NONE ctermbg=NONE
|
||||||
autocmd colorscheme * highlight NonText guibg=NONE ctermbg=NONE
|
autocmd colorscheme * highlight NonText guibg=NONE ctermbg=NONE
|
||||||
colorscheme evening
|
colorscheme desert
|
||||||
|
|
|
@ -3,46 +3,44 @@ local dapui = require("dapui")
|
||||||
|
|
||||||
dapui.setup({})
|
dapui.setup({})
|
||||||
|
|
||||||
dap.adapters.codelldb = {
|
dap.adapters.lldb = {
|
||||||
type = 'server',
|
type = 'server',
|
||||||
host = '127.0.0.1',
|
host = '127.0.0.1',
|
||||||
port = "${port}",
|
port = "${port}",
|
||||||
executable = {
|
executable = {
|
||||||
command = '/usr/bin/codelldb',
|
command = '/usr/bin/lldb-dap',
|
||||||
args = { "--port", "${port}" },
|
args = { "--port", "${port}" },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dap.configurations.rust = {
|
dap.configurations.rust = {
|
||||||
{
|
{
|
||||||
name = "Remote Launch",
|
name = "Attach to Remote via GDB Remote",
|
||||||
type = "codelldb",
|
type = "lldb",
|
||||||
request = "launch",
|
request = "launch",
|
||||||
args = {
|
|
||||||
"platform select remote-linux", -- For example: 'remote-linux', 'remote-macosx', 'remote-android', etc.
|
|
||||||
"platform connect connect://localhost:13000",
|
|
||||||
},
|
|
||||||
program = function()
|
program = function()
|
||||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||||
end,
|
end,
|
||||||
attachCommands = {
|
cwd = "${workspaceFolder}",
|
||||||
"platform select remote-linux",
|
|
||||||
"platform connect connect://localhost:13000",
|
|
||||||
},
|
|
||||||
cwd = '${workspaceFolder}',
|
|
||||||
stopOnEntry = false,
|
stopOnEntry = false,
|
||||||
|
-- runInTerminal = true,
|
||||||
|
|
||||||
|
initCommands = {
|
||||||
|
"gdb-remote localhost:1234",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
-- dap.configurations.rust = {
|
-- dap.configurations.rust = {
|
||||||
-- {
|
-- {
|
||||||
-- name = "Launch file",
|
-- name = "Launch File",
|
||||||
-- type = "codelldb",
|
-- type = "codelldb",
|
||||||
-- request = "launch",
|
-- request = "launch",
|
||||||
-- program = function()
|
-- program = function()
|
||||||
-- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
-- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||||
-- end,
|
-- end,
|
||||||
-- cwd = '${workspaceFolder}',
|
-- cwd = '${workspaceFolder}',
|
||||||
|
-- runInTerminal = true,
|
||||||
-- stopOnEntry = false,
|
-- stopOnEntry = false,
|
||||||
-- },
|
-- },
|
||||||
-- }
|
-- }
|
||||||
|
|
Loading…
Add table
Reference in a new issue