fix: Changes to the rust debugging setup

This commit is contained in:
Finch 2025-07-27 18:05:15 -05:00
parent c7055d45f9
commit 96063079b4

View File

@ -96,26 +96,26 @@ return {
vim.fn.sign_define('DapBreakpointCondition', { text = '🝌', texthl = '', lineh = '', numhl = '' }) vim.fn.sign_define('DapBreakpointCondition', { text = '🝌', texthl = '', lineh = '', numhl = '' })
vim.fn.sign_define('DapStopped', { text = '▶️' }) vim.fn.sign_define('DapStopped', { text = '▶️' })
dap.adapters.gdb = { -- dap.adapters.gdb = {
type = 'executable', -- type = 'executable',
command = 'gdb', -- command = 'gdb',
args = { '-i', 'dap' }, -- args = { '-i', 'dap' },
} -- }
dap.adapters.lldb = { dap.adapters.lldb = {
type = 'executable',
command = 'lldb', command = 'lldb',
type = 'executable',
} }
dap.adapters.debugpy = { dap.adapters.debugpy = {
type = 'executable',
command = 'debugpy', command = 'debugpy',
type = 'executable',
} }
dap.configurations = { dap.configurations = {
rust = { rust = {
{ {
type = 'gdb', type = 'lldb',
name = 'Debug', name = 'Debug',
request = 'launch', request = 'launch',
program = function() program = function()
@ -130,14 +130,6 @@ return {
name = 'Launch current file', name = 'Launch current file',
request = 'launch', request = 'launch',
program = '${file}', program = '${file}',
-- pythonPath = function()
-- local cwd = vim.fn.getcwd()
-- if vim.fn.executable(cwd .. '/.venv/bin/python') == 1 then
-- return cwd .. '/.venv/bin/python'
-- else
-- return '/usr/bin/python'
-- end
-- end,
} }
} }
} }