dots/config/astronvim/lua/user/mason-nvim-dap/setup_handlers.lua
2023-02-13 01:53:52 -03:00

22 lines
699 B
Lua

return {
firefox = function(source_name)
local dap = require("dap")
dap.adapters.firefox = {
type = "executable",
command = "node",
args = { os.getenv("HOME") .. "/.local/share/nvim/mason/bin/firefox-debug-adapter" },
}
dap.configurations.javascriptreact = {
{
name = "Debug with Firefox",
type = "firefox",
request = "launch",
reAttach = true,
url = "http://localhost:3000",
webRoot = "${workspaceFolder}",
firefoxExecutable = "/usr/bin/firefox-developer-edition",
},
}
end,
}