NestJS project debug - debugger disconnects

I have a basic nestjs project, freshly created, and have configured a basic launcher that works very well with vscode:

{
“version”: “0.2.0”,
“configurations”: [
{
“type”: “node”,
“request”: “launch”,
“name”: “Debug Nest Framework”,
“runtimeExecutable”: “npm”,
“runtimeArgs”: [
“run”,
“start:debug”,
“–”,
“–inspect-brk”
],
“autoAttachChildProcesses”: true,
“restart”: true,
“sourceMaps”: true,
“stopOnEntry”: false,
“console”: “integratedTerminal”,
}
]
}

With cursor, the debugger gets disconnected immediately after I launch it, without any error. If I change console to other modes, it works, but I have other problems. Anybody has this problem?

I have been having this exact same problem for a while. What’s more confusing is that I have two computers both running windows 11. One of them doesn’t have this issue, and one does. I’m not sure what the difference is between them, but I checked and they both have the same version of cursor. This problem started suddenly earlier in 2025, though I don’t remember exactly when.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.