python path will be determined automatically

This commit is contained in:
SamPosh 2023-04-20 18:35:25 +05:30 committed by GitHub
parent 788bd48a18
commit 5b7bdcc5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,8 +1,9 @@
local dap = require('dap') local dap = require('dap')
return function() return function()
local python_install_path = vim.fn.exepath('python')
dap.adapters.python = { dap.adapters.python = {
type = "executable", type = "executable",
command = "/usr/local/bin/python", -- use "which python" command and provide the python path command = python_install_path, -- use "which python" command will give you python installed path
args = { args = {
"-m", "-m",
"debugpy.adapter", "debugpy.adapter",