python path will be determined automatically
This commit is contained in:
parent
788bd48a18
commit
5b7bdcc5fb
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue