Today I learned that it’s easier than I thought to attach a debugger to a NestJS app in VS Code. Run the following commands in the command palette:

In the terminal, run the NestJS app in the usual way, for example yarn start:dev. The debugger will now attach automatically.

No need to edit any launch.json files, awesome!