feat(nvim): add bash debug adapter support
This commit is contained in:
parent
bf40cf4c55
commit
24cfe91ae4
@ -23,6 +23,13 @@ dap.adapters.coreclr = {
|
|||||||
args = { "--interpreter=vscode" },
|
args = { "--interpreter=vscode" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
dap.adapters.bashdb = {
|
||||||
|
type = 'executable',
|
||||||
|
command = vim.fn.stdpath("data") .. '/mason/packages/bash-debug-adapter/bash-debug-adapter',
|
||||||
|
name = 'bashdb'
|
||||||
|
}
|
||||||
|
|
||||||
-- configurations
|
-- configurations
|
||||||
dap.configurations.cpp = {
|
dap.configurations.cpp = {
|
||||||
{
|
{
|
||||||
@ -107,3 +114,25 @@ local config = {
|
|||||||
|
|
||||||
dap.configurations.cs = config
|
dap.configurations.cs = config
|
||||||
dap.configurations.fsharp = config
|
dap.configurations.fsharp = config
|
||||||
|
|
||||||
|
dap.configurations.sh = {
|
||||||
|
{
|
||||||
|
type = 'bashdb';
|
||||||
|
request = 'launch';
|
||||||
|
name = "Launch file";
|
||||||
|
showDebugOutput = true;
|
||||||
|
pathBashdb = vim.fn.stdpath("data") .. '/mason/packages/bash-debug-adapter/extension/bashdb_dir/bashdb';
|
||||||
|
pathBashdbLib = vim.fn.stdpath("data") .. '/mason/packages/bash-debug-adapter/extension/bashdb_dir';
|
||||||
|
trace = true;
|
||||||
|
file = "${file}";
|
||||||
|
program = "${file}";
|
||||||
|
cwd = '${workspaceFolder}';
|
||||||
|
pathCat = "cat";
|
||||||
|
pathBash = "/bin/bash";
|
||||||
|
pathMkfifo = "mkfifo";
|
||||||
|
pathPkill = "pkill";
|
||||||
|
args = {};
|
||||||
|
env = {};
|
||||||
|
terminalKind = "integrated";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user