diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index ac5c5ef3..cee8a3fc 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -40,10 +40,11 @@ return { -- without dockerfile then install debugpy or mention the python path where debugpy is installed. --[[ handlers = { - python = function(source_name) + python = function() + local PYTHON_DIR = require("mason-registry").get_package("debugpy"):get_install_path() .. "/venv/Scripts/python" dap.adapters.python = { type = "executable", - command = "/usr/bin/python3", -- use "which python" command and provide the python path + command = PYTHON_DIR, -- use "which python" command and provide the python path args = { "-m", "debugpy.adapter",