Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code doesn't start Nest.js application debugging with launch.json #13778

Closed
3 of 15 tasks
Filyus opened this issue Jul 11, 2024 · 1 comment
Closed
3 of 15 tasks

VS Code doesn't start Nest.js application debugging with launch.json #13778

Filyus opened this issue Jul 11, 2024 · 1 comment
Labels
needs triage This issue has not been looked into

Comments

@Filyus
Copy link

Filyus commented Jul 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

VS Code exits a debug session when trying to debug a Nest.js application using launch.json.
There aren't even Nest.js logs in the terminal.

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Debug",
      "runtimeExecutable": "npm",
      "runtimeArgs": [
        "run",
        "start:debug"
      ],
      "console": "integratedTerminal"
    }
  ]
}

Minimum reproduction code

https://github.com/Filyus/project-1

Steps to reproduce

Upgrade to the latest packages, listed in the Packages versions section.
Below the old ones:

"@nestjs/common": "^10.3.3",
"@nestjs/config": "^3.2.0",
"@nestjs/core": "^10.3.3",
"@nestjs/platform-express": "^10.3.3",
"@nestjs/platform-socket.io": "^10.3.3",
"@nestjs/serve-static": "^4.0.1",
"@nestjs/websockets": "^10.3.3",
"@nestjs/cli": "^10.3.2",
"@nestjs/schematics": "^10.1.1",
"@nestjs/testing": "^10.3.3",

Expected behavior

Started debug session.

Package

  • I don't know. Or some 3rd-party package
  • @nestjs/common
  • @nestjs/core
  • @nestjs/microservices
  • @nestjs/platform-express
  • @nestjs/platform-fastify
  • @nestjs/platform-socket.io
  • @nestjs/platform-ws
  • @nestjs/testing
  • @nestjs/websockets
  • Other (see below)

Other package

No response

NestJS version

10.3.10

Packages versions

"@nestjs/common": "^10.3.10",
"@nestjs/config": "^3.2.3",
"@nestjs/core": "^10.3.10",
"@nestjs/platform-express": "^10.3.10",
"@nestjs/platform-socket.io": "^10.3.10",
"@nestjs/serve-static": "^4.0.2",
"@nestjs/websockets": "^10.3.10",
"@nestjs/cli": "^10.4.2",
"@nestjs/schematics": "^10.1.2",
"@nestjs/testing": "^10.3.10",

Node.js version

20.15.1

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

Same issue with Node 18.20.4.

VS Code:

Version: 1.91.0 (user setup)
Commit: ea1445cc7016315d0f5728f8e8b12a45dc0a7286
Date: 2024-07-01T18:52:22.949Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045
@Filyus Filyus added the needs triage This issue has not been looked into label Jul 11, 2024
@kamilmysliwiec
Copy link
Member

Thank you for taking the time to submit your report! From the looks of it, this could be better discussed on our Discord. If you haven't already, please join here and send a new post in the #⁠ 🐈 nestjs-help forum. Make sure to include a link to this issue, so you don't need to write it all again. We have a large community of helpful members, who will assist you in getting this to work.

@nestjs nestjs locked and limited conversation to collaborators Jul 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs triage This issue has not been looked into
Projects
None yet
Development

No branches or pull requests

2 participants