Update debug.lua

This commit is contained in:
SamPosh 2023-04-20 13:52:13 +05:30 committed by GitHub
parent dbe39c6b54
commit b03ea9dd9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -40,10 +40,11 @@ return {
-- without dockerfile then install debugpy or mention the python path where debugpy is installed. -- without dockerfile then install debugpy or mention the python path where debugpy is installed.
--[[ --[[
handlers = { 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 = { dap.adapters.python = {
type = "executable", 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 = { args = {
"-m", "-m",
"debugpy.adapter", "debugpy.adapter",