adapters: php, ruby, lua

This commit is contained in:
swaits committed 2026-04-11 16:43:04 -06:00
1 parent ff4eefea6c
commit a74469968a
3 files changed
+80 -3

No files matched your search

+33 -1
View File
@@ -1 +1,33 @@
return {}
local loader = require("tiny-debugger.adapters.init")
local M = {}
function M.register(dap)
local rdbg = loader.find_executable({ "rdbg" })
if not rdbg then return end
loader.register(dap, "rdbg", {
type = "server",
port = "${port}",
executable = {
command = rdbg,
args = { "-n", "--open", "--port", "${port}", "-c", "--", "ruby", "${file}" },
},
}, {
{
type = "rdbg",
request = "launch",
name = "Launch file",
command = "ruby",
script = "${file}",
},
{
type = "rdbg",
request = "attach",
name = "Attach",
localfsMap = "${workspaceFolder}",
},
}, { "ruby" })
end
return M