visual-studio-codenestjs

How can I see console.log output when running a NestJS app?


I'm building my first NestJS app and I see a lot of examples in their docs that use console.log(), but when I add it, there's no output in the terminal. I'm using vscode's terminal.

I've also tried using the built-in Logger and start the app using npm run start:debug, and I see no output from the Logger either. I know that it's reaching my controller because I'm getting a response. Does anyone know what the issue could be?


Solution

  • Through discussion we figured out that the server needed to be rebuilt between changes. npm run start:dev does the trick just fine.