From 840532a28cf672e7707eff16c792db31f42d325a Mon Sep 17 00:00:00 2001 From: dlond Date: Sun, 25 May 2025 22:48:56 +1200 Subject: [PATCH] added path to debugserver - fixing pt 2 --- lua/custom/plugins/debug.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/custom/plugins/debug.lua b/lua/custom/plugins/debug.lua index fe096e8a..8114f773 100644 --- a/lua/custom/plugins/debug.lua +++ b/lua/custom/plugins/debug.lua @@ -60,7 +60,7 @@ return { -- Assumes 'lldb-dap' executable is in PATH (from pkgs.llvmPackages_XX.lldb) dap.adapters.lldb = { type = 'executable', - command = '/nix/store/143hsrh16zml9n71xk9ysr81z0s1rvpk-lldb-19.1.7/bin/lldb-dap', + command = 'lldb-dap', name = 'lldb-dap (Nix)', env = { LLDB_DEBUGSERVER_PATH = '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/debugserver', @@ -72,11 +72,11 @@ return { type = 'lldb', request = 'launch', program = function() - local debug_bin = vim.fn.getcwd() .. 'build/debug/cpp-hello' + 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') + -- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file') end end, cwd = '${workspaceFolder}',