31 lines
559 B
Lua
31 lines
559 B
Lua
|
|
local dap = require('dap')
|
||
|
|
local dap_python = require('dap-python')
|
||
|
|
|
||
|
|
dap_python.setup('uv') -- or wherever your debugpy-enabled python is
|
||
|
|
|
||
|
|
dap.adapters.python = {
|
||
|
|
type = 'server',
|
||
|
|
host = '127.0.0.1',
|
||
|
|
port = 5678,
|
||
|
|
}
|
||
|
|
|
||
|
|
dap.configurations.python = {
|
||
|
|
{
|
||
|
|
type = 'python',
|
||
|
|
request = 'attach',
|
||
|
|
name = "Attach to remote",
|
||
|
|
connect = {
|
||
|
|
host = "127.0.0.1",
|
||
|
|
port = 5678,
|
||
|
|
},
|
||
|
|
mode = "remote",
|
||
|
|
pathMappings = {
|
||
|
|
{
|
||
|
|
localRoot = vim.fn.getcwd(),
|
||
|
|
remoteRoot = "/home/mmc-user/fair-psgg"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}
|
||
|
|
|