在Visual Studio代码中调试输出nodejs

时间:2021-10-17 15:30:06

I am running Visual Studio Code on Ubuntu. Debugging a nodejs app works fine after installing mono. But where can I find the output produced by console.log?

我在Ubuntu上运行Visual Studio Code。安装mono后,调试nodejs app工作正常。但是我在哪里可以找到console.lo*生的输出?

1 个解决方案

#1


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

a console window will be opened with nodejs stdout and stderr connected to it

将打开一个控制台窗口,其中nodejs stdout和stderr连接到它

#1


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

a console window will be opened with nodejs stdout and stderr connected to it

将打开一个控制台窗口,其中nodejs stdout和stderr连接到它