2023-09-09 15:42:56 +03:00

23 lines
606 B
Lua

local dap = require("dap")
local dap_utils = require("dap.utils")
local launch = {
type = "pwa-node",
request = "launch",
name = "(pwa-node) Launch file",
program = "${file}",
cwd = "${workspaceFolder}",
}
local attach = {
type = "pwa-node",
request = "attach",
name = "(pwa-node) Attach",
processId = dap_utils.pick_process,
cwd = "${workspaceFolder}",
}
table.insert(dap.configurations.javascript, launch)
table.insert(dap.configurations.javascript, attach)
table.insert(dap.configurations.typescript, launch)
table.insert(dap.configurations.typescript, attach)