简体   繁体   English

在Visual Studio代码中调试输出nodejs

[英]Debug output nodejs in Visual Studio Code

I am running Visual Studio Code on Ubuntu. 我在Ubuntu上运行Visual Studio Code。 Debugging a nodejs app works fine after installing mono. 安装mono后,调试nodejs app工作正常。 But where can I find the output produced by console.log? 但是我在哪里可以找到console.log产生的输出?

When in the editor, either: 在编辑器中,要么:

  • hit CMD-Shift-P then type Console and choose Open New console 点击CMD-Shift-P然后键入Console并选择Open New console

or 要么

  • hit CMD-Shift-C 点击CMD-Shift-C

a console window will be opened with nodejs stdout and stderr connected to it 将打开一个控制台窗口,其中nodejs stdoutstderr连接到它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM