2023-07-03 22:34:46 +03:30
|
|
|
{
|
|
|
|
empty = {
|
2025-01-26 14:50:43 -06:00
|
|
|
plugins.dap-python.enable = true;
|
2023-07-03 22:34:46 +03:30
|
|
|
};
|
|
|
|
|
|
|
|
example = {
|
2025-01-26 14:50:43 -06:00
|
|
|
plugins.dap-python = {
|
2023-07-03 22:34:46 +03:30
|
|
|
enable = true;
|
|
|
|
|
|
|
|
customConfigurations = [
|
|
|
|
{
|
|
|
|
type = "python";
|
|
|
|
request = "launch";
|
|
|
|
name = "My custom launch configuration";
|
|
|
|
program = "$\{file}";
|
|
|
|
# ... more options; see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings
|
|
|
|
}
|
|
|
|
];
|
|
|
|
resolvePython = ''
|
|
|
|
function()
|
|
|
|
return "/absolute/path/to/python"
|
|
|
|
end
|
|
|
|
'';
|
|
|
|
testRunner = "customTestRunner";
|
|
|
|
testRunners = {
|
|
|
|
customTestRunner = ''
|
|
|
|
function(classname, methodname, opts)
|
|
|
|
local args = {classname, methodname}
|
|
|
|
return 'modulename', args
|
|
|
|
end
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
default = {
|
2025-01-26 14:50:43 -06:00
|
|
|
plugins.dap-python = {
|
2023-07-03 22:34:46 +03:30
|
|
|
enable = true;
|
|
|
|
|
|
|
|
adapterPythonPath = "python3";
|
2025-01-26 14:50:43 -06:00
|
|
|
settings = {
|
|
|
|
console = "integratedTerminal";
|
|
|
|
includeConfigs = true;
|
|
|
|
};
|
2023-07-03 22:34:46 +03:30
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|