feat: markview jdtls
This commit is contained in:
parent
f46ca719c8
commit
3d5c70daf0
4 changed files with 122 additions and 103 deletions
|
|
@ -34,29 +34,29 @@ return {
|
|||
stopAtBeginningOfMainSubprogram = true,
|
||||
debugmode = "file",
|
||||
},
|
||||
-- {
|
||||
-- name = "Select and attach to process",
|
||||
-- type = "gdb",
|
||||
-- request = "attach",
|
||||
-- program = function()
|
||||
-- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
-- end,
|
||||
-- pid = function()
|
||||
-- local name = vim.fn.input('Executable name (filter): ')
|
||||
-- return require("dap.utils").pick_process({ filter = name })
|
||||
-- end,
|
||||
-- cwd = '${workspaceFolder}'
|
||||
-- },
|
||||
-- {
|
||||
-- name = 'Attach to gdbserver :1234',
|
||||
-- type = 'gdb',
|
||||
-- request = 'attach',
|
||||
-- target = 'localhost:1234',
|
||||
-- program = function()
|
||||
-- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
-- end,
|
||||
-- cwd = '${workspaceFolder}'
|
||||
-- },
|
||||
{
|
||||
name = "Select and attach to process",
|
||||
type = "gdb",
|
||||
request = "attach",
|
||||
program = function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end,
|
||||
pid = function()
|
||||
local name = vim.fn.input('Executable name (filter): ')
|
||||
return require("dap.utils").pick_process({ filter = name })
|
||||
end,
|
||||
cwd = '${workspaceFolder}'
|
||||
},
|
||||
{
|
||||
name = 'Attach to gdbserver :1234',
|
||||
type = 'gdb',
|
||||
request = 'attach',
|
||||
target = 'localhost:1234',
|
||||
program = function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end,
|
||||
cwd = '${workspaceFolder}'
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue