init.lua/lua/configs/dap/langs/python.lua(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
return function(dap)
dap.adapters.python = {
type = "executable",
command = "python",
args = { "-m", "debugpy.adapter" },
}
dap.configurations.python = { {
type = "python",
request = "launch",
name = "Launch file",
program = "${file}",
pythonPath = "python",
} }
end
|