Update debug.lua

This commit is contained in:
SamPosh 2023-04-20 14:25:06 +05:30 committed by GitHub
parent 4fcc6399a5
commit 3e22b93772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -41,10 +41,9 @@ return {
--[[
handlers = {
python = function()
local PYTHON_DIR = require("mason-registry").get_package("debugpy"):get_install_path() .. "/venv/Scripts/python"
dap.adapters.python = {
type = "executable",
command = PYTHON_DIR, -- use "which python" command and provide the python path
command = "/usr/local/bin/python", -- use "which python" command and provide the python path
args = {
"-m",
"debugpy.adapter",
@ -145,7 +144,8 @@ return {
request = 'launch',
name = 'My custom launch configuration',
program = '${file}',
cwd = vim.fn.getcwd()
cwd = vim.fn.getcwd(),
console= "integratedTerminal",
})
end,