Update debug.lua
This commit is contained in:
parent
dbe39c6b54
commit
b03ea9dd9b
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue