Skip to content

Commit

Permalink
Fix debugpy on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueDrink9 committed Nov 20, 2023
1 parent f0cd12f commit 9d74417
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/mason-nvim-dap/mappings/configurations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ M.python = {
request = 'launch',
name = 'Python: Launch file',
program = '${file}', -- This configuration will launch the current file if used.
pythonPath = venv_path and (venv_path .. '/bin/python') or nil,
pythonPath = venv_path and (
-- venv on Windows uses Scripts instead of bin
(vim.fn.has("win32") ==1 and
venv_path .. '/Scripts/python') or
venv_path .. '/bin/python'
) or nil,
},
}

Expand Down

0 comments on commit 9d74417

Please sign in to comment.