From b03ea9dd9bf8c23ec1c24c43340e903d415bb769 Mon Sep 17 00:00:00 2001 From: SamPosh Date: Thu, 20 Apr 2023 13:52:13 +0530 Subject: [PATCH] Update debug.lua --- lua/kickstart/plugins/debug.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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",