Skip to content

Instantly share code, notes, and snippets.

@ldelossa
Created December 22, 2022 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldelossa/5454ec60202cf1a9bd199724e03900ff to your computer and use it in GitHub Desktop.
Save ldelossa/5454ec60202cf1a9bd199724e03900ff to your computer and use it in GitHub Desktop.
nvim-dap
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