I’ve been trying to set up neovim and dap for Nexjs app for more then 5 month. So I’m here.
This is the .vscode/launch.json in project directory.
"version": "0.2.0",
"configurations": [
{
"name": "Launch file",
"type": "go",
"request": "launch",
"env": {
"USER_NAME": "REPLACE_FROM_SECRETS_MANAGER",
"USER_PASS": "REPLACE_FROM_SECRETS_MANAGER",
"BASE_URL": "https://dev.liminal.security"
},
"mode": "debug",
"program": "${file}"
},
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"cwd": "${workspaceFolder}",
"command": "rm -rf .next/ && pnpm next dev -p 3000"
},
{
"name": "Next.js: debug client-side",
"type": "pwa-chrome",
"request": "launch",
"cwd": "${workspaceFolder}",
"url": "http://localhost:3000"
},
{
"name": "Next.js: debug full stack",
"type": "node-terminal",
"request": "launch",
"command": "pnpm dev",
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"serverReadyAction": {
"pattern": "started server on .+, url: (https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
}
]
}
This is my neovim config
I succeed in debugging a single js file. So the vscode-js-debug is installed properly.
I would really appreciate any help…
I tried all adapters, another debugger, looking through logs, launch an debugger from terminal, but didn’t succeed. I use neovim as an idea and want to have the same functionality for debugging as VSCode