Visual Studio Code 调试控制台颜色? [英] Visual Studio Code Debug Console colors?

查看:456
本文介绍了Visual Studio Code 调试控制台颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试 node.js 代码时,有没有办法在 Visual Studio Code(版本 1.10.2)的调试控制台中显示颜色(如在终端中)?

Is there a way to display colors (like in a terminal) in the Debug Console of Visual Studio Code (Version 1.10.2) when debugging node.js code?

推荐答案

我想到目前为止最好的方法是将您的调试输出放到备用目的地:

I guess so far the best way is to put your debug output into alternate destinations:

在启动配置属性中,console 设置可以设置为以下之一:internalConsole(默认,内置调试控制台)externalTerminal(外部 cmd 窗口)或 integratedTerminal(VS Code 终端).

In Launch Configuration Attributes the console setting can be set to one of the following: internalConsole (default, the builtin Debug Console) externalTerminal (external cmd window) or integratedTerminal (the VS Code terminal).

外部终端命令行可以进一步在 VS Code 设置中指定以下之一:terminal.external.windowsExecterminal.external.osxExecterminal.external.linuxExec 来自默认的 os 终端.

The external terminal command line can further be specified in the VS Code Settings under one of the following: terminal.external.windowsExec, terminal.external.osxExec, and terminal.external.linuxExec from the default that is your default os terminal.

来源:VS Code 文档,例如 node.js:https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_launch-configuration-attributes

Source: VS Code docs, for example for node.js: https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_launch-configuration-attributes

这篇关于Visual Studio Code 调试控制台颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆