added path to debugserver - fixing
This commit is contained in:
parent
75a8067a4c
commit
709e2bfc7b
|
@ -60,7 +60,7 @@ return {
|
|||
-- Assumes 'lldb-dap' executable is in PATH (from pkgs.llvmPackages_XX.lldb)
|
||||
dap.adapters.lldb = {
|
||||
type = 'executable',
|
||||
command = 'lldb-dap',
|
||||
command = '/nix/store/143hsrh16zml9n71xk9ysr81z0s1rvpk-lldb-19.1.7/bin/lldb-dap',
|
||||
name = 'lldb-dap (Nix)',
|
||||
env = {
|
||||
LLDB_DEBUGSERVER_PATH = '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/debugserver',
|
||||
|
@ -72,7 +72,12 @@ return {
|
|||
type = 'lldb',
|
||||
request = 'launch',
|
||||
program = function()
|
||||
local debug_bin = vim.fn.getcwd() .. 'build/debug/cpp-hello'
|
||||
if vim.fn.filereadable(debug_bin) == 1 then
|
||||
return debug_bin
|
||||
else
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end
|
||||
end,
|
||||
cwd = '${workspaceFolder}',
|
||||
stopOnEntry = false,
|
||||
|
|
Loading…
Reference in New Issue