add firefox adapter and config; fix tables
parent
ee05de7d29
commit
0f18e541c6
@ -0,0 +1,10 @@
|
|||||||
|
local dap = require("dap")
|
||||||
|
|
||||||
|
dap.adapters.firefox = {
|
||||||
|
type = "executable",
|
||||||
|
command = "node",
|
||||||
|
args = {
|
||||||
|
vim.fn.stdpath("data") ..
|
||||||
|
"/mason/packages/firefox-debug-adapter" ..
|
||||||
|
"/dist/adapter.bundle.js" },
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
local dap = require("dap")
|
||||||
|
|
||||||
|
local launch = {
|
||||||
|
name = 'Debug index.html with Firefox',
|
||||||
|
type = 'firefox',
|
||||||
|
request = 'launch',
|
||||||
|
reAttach = true,
|
||||||
|
file = "${workspaceFolder}/index.html",
|
||||||
|
}
|
||||||
|
|
||||||
|
table.insert(dap.configurations.javascript, launch)
|
||||||
|
table.insert(dap.configurations.typescript, launch)
|
Loading…
Reference in New Issue