summaryrefslogtreecommitdiff
path: root/.config/nvim.bak/lua/dap_lldb.lua
blob: 40861d0eb18f253a6d2bc2d04265cf5649ce32b4 (plain)
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
local dap = require'dap'

require("dapui").setup()

dap.adapters.lldb = {
	type = 'executable',
	-- absolute path is important here, otherwise the argument in the `runInTerminal` request will default to $CWD/lldb-vscode
	command = '/usr/bin/lldb-vscode',
	name = "lldb"
}
dap.configurations.c = {
	{
	  name = "Launch",
	  type = "lldb",
	  request = "launch",
	  program = function()
		return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
	  end,
	  cwd = '${workspaceFolder}',
	  stopOnEntry = false,
	  args = {},
	  runInTerminal = true,
	},
}