nvim-dap-vscode-js
nvim-dap-vscode-js copied to clipboard
Debugger don't work with imports/packages
When I debug a code without importing none of it works normally.
But when there is an import it doesn't work. It opens the UI but ends soon after.
My plugins.lua
{
"mfussenegger/nvim-dap",
config = function()
require "custom.configs.dap"
require("core.utils").load_mappings "dap"
end,
},
{
"rcarriga/nvim-dap-ui",
event = "VeryLazy",
dependencies = "mfussenegger/nvim-dap",
config = function()
local dap = require "dap"
local dapui = require "dapui"
dapui.setup()
dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open()
end
dap.listeners.before.event_terminated["dapui_config"] = function()
dapui.close()
end
dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close()
end
end,
},
{
"mxsdev/nvim-dap-vscode-js",
dependencies = "mfussenegger/nvim-dap",
ft = { "javascript", "typescript" },
},
My configs dap.config
local dap = require "dap"
require("dap").adapters["pwa-node"] = {
type = "server",
host = "localhost",
port = "${port}",
executable = {
command = "node",
args = { "/home/igber/Documents/js-debug/src/dapDebugServer.js", "${port}" },
},
}
for _, language in ipairs { "typescript", "javascript" } do
dap.configurations[language] = {
{
type = "pwa-node",
request = "launch",
name = "Launch file",
program = "${file}",
cwd = "${workspaceFolder}",
},
}
end
Of course I didn't see this until after I posted my issue, but I guess since this hasn't gotten any response in 6 months I was probably wasting my time anyway.
Same issue here, default config, I linked a simple repro. At this point I'm wondering if anyone is able to use this extension for debugging via launch.
My issue: https://github.com/mxsdev/nvim-dap-vscode-js/issues/69#issue-2255006814