Closed kaykhan closed 1 year ago
As a work around, you can use the absolute path. That solved the issue for me.
As a work around, you can use the absolute path. That solved the issue for me.
can you paste your config, still having issues
require'dap-vscode-js'.setup({
debugger_path='/Users/myuser/repos/vscode-js-debug',
adapters = { 'pwa-node', 'node-terminal', 'pwa-extensionHost' },
})
for _, language in ipairs({ "typescript", "javascript" }) do
require("dap").configurations[language] = {
{
type = "pwa-node",
request = "launch",
name = "Debug Jest Tests",
-- trace = true, -- include debugger info
runtimeExecutable = "node",
runtimeArgs = {
"./node_modules/jest/bin/jest.js",
"--runInBand",
},
rootPath = "${workspaceFolder}",
cwd = "${workspaceFolder}",
console = "integratedTerminal",
internalConsoleOptions = "neverOpen",
}
}
end
Don't know if this has any relevance but my config is a .lua
file.
Like you said added absolute path in ubuntu and worked "/home/your_username/vscode-js-debug"
i have vscode-js-debug installed in my home directory. I ran
npm install --legacy-peer-deps && npm run compile
without any issues.dap.vim