-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdap.lua
More file actions
32 lines (27 loc) · 696 Bytes
/
dap.lua
File metadata and controls
32 lines (27 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
local dap = require('dap')
local dapui = require('dapui')
local cwd = vim.fn.getcwd();
local progname = 'positionals'
dap.adapters.codelldb = {
type = 'server',
port = "${port}",
executable = {
command = 'codelldb',
args = {"--port", "${port}"},
}
}
dap.configurations.cpp = {
{
name = "Launch file",
type = "codelldb",
request = "launch",
initCommands = { 'platform shell -- ' .. cwd .. '/build.sh -d' },
program = cwd .. '/out/' .. progname,
args = { 'src', 'dst', 'ass' },
cwd = '${workspaceFolder}',
stopOnEntry = false,
},
}
dap.configurations.c = dap.configurations.cpp
dap.configurations.rust = dap.configurations.cpp
dapui.setup()