nvim: python dap wip
This commit is contained in:
parent
7dfe2ca68b
commit
a06e856332
1 changed files with 31 additions and 0 deletions
|
@ -87,3 +87,34 @@ dap.configurations.rust = {
|
||||||
showDisassembly = "never"
|
showDisassembly = "never"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Set up debugpy via uv
|
||||||
|
dap.adapters.python = {
|
||||||
|
type = 'server',
|
||||||
|
port = "${port}",
|
||||||
|
host = "127.0.0.1",
|
||||||
|
executable = {
|
||||||
|
command = "uvx",
|
||||||
|
args = {
|
||||||
|
"debugpy",
|
||||||
|
"--listen",
|
||||||
|
"127.0.0.1:${port}",
|
||||||
|
"--wait-for-client",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
options = {
|
||||||
|
source_filetype = 'python',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
dap.configurations.python = {
|
||||||
|
{
|
||||||
|
type = 'python';
|
||||||
|
request = 'launch';
|
||||||
|
name = "Launch file";
|
||||||
|
program = "${file}";
|
||||||
|
pythonPath = function()
|
||||||
|
return "${workspaceFolder}/.venv/bin/python"
|
||||||
|
end;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue