I'm using VSCode debugger and winston logger for NodeJS, but can't see output from application unless I specify external terminal like this:
"version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Launch Program", "program": "${workspaceFolder}/server.js", "console": "externalTerminal" } ]
Is there way to see that output in output window, like when i start code using CodeRunner plugin?
To bring up the Run and Debug view, select the Run and Debug icon in the Activity Bar on the side of VS Code. You can also use the keyboard shortcut Ctrl+Shift+D. The Run and Debug view displays all information related to running and debugging and has a top bar with debugging commands and configuration settings.
JavaScript Debug Terminal# In a similar way to auto attach, the JavaScript Debug Terminal will automatically debug any Node. js process you run in it. You can create a Debug Terminal by running the Debug: Create JavaScript Debug Terminal command from the Command Palette ( kbs(workbench. action.
When using a logger that outputs to
process.stdout.write
you can use
"outputCapture": "std"
in the launch config to also capture that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With