Where is stdout for VS Code?

前端 未结 3 1817
无人共我
无人共我 2021-01-17 22:27

I am running Node.js in VS Code. I see output of console.log in the Debug Window.

Where does process.stdout.write go to? I can\'t find it i

相关标签:
3条回答
  • 2021-01-17 23:26

    Can you try to add "console": "internalConsole" to your config and see if it works?

    As per the docs these are the available options for the console:

    console - what kind of console to use, for example, internalConsole, integratedTerminal, externalTerminal

    0 讨论(0)
  • 2021-01-17 23:29

    Looking at issues with process.stdout.write the suggested fixes are adding these to your launch config:

    "console": "internalConsole", 
    "outputCapture": "std",
    

    Especially the outputCapture entry is important.

    0 讨论(0)
  • 2021-01-17 23:31

    Make sure the Debug Console is visible:

    Ctrl + Shift + Y

    0 讨论(0)
提交回复
热议问题