Created
December 22, 2022 01:23
-
-
Save ldelossa/5454ec60202cf1a9bd199724e03900ff to your computer and use it in GitHub Desktop.
nvim-dap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local dap = require('dap') | |
dap.adapters.lldb = { | |
type = 'executable', | |
command = '/usr/bin/lldb-vscode', -- adjust as needed, must be absolute path | |
name = 'lldb' | |
} | |
dap.configurations.c = { | |
{ | |
name = 'graph_test', | |
type = 'lldb', | |
request = 'launch', | |
program = "graph_test", | |
cwd = '${workspaceFolder}', | |
stopOnEntry = false, | |
args = {}, | |
}, | |
{ | |
name = 'utils_test', | |
type = 'lldb', | |
request = 'launch', | |
program = "utils_test", | |
cwd = '${workspaceFolder}', | |
stopOnEntry = false, | |
args = {}, | |
}, | |
{ | |
name = 'net_test', | |
type = 'lldb', | |
request = 'launch', | |
program = "net_test", | |
cwd = '${workspaceFolder}', | |
stopOnEntry = false, | |
args = {}, | |
}, | |
{ | |
name = 'testapp', | |
type = 'lldb', | |
request = 'launch', | |
program = "testapp", | |
cwd = '${workspaceFolder}', | |
stopOnEntry = false, | |
args = {}, | |
initCommands = {"settings set target.input-path testapp-debug"} | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment