Visual Studio Code Debug Console colors?

后端 未结 8 1538
旧巷少年郎
旧巷少年郎 2020-12-06 04:34

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?

8条回答
  •  攒了一身酷
    2020-12-06 05:10

    My Setup, coloured steps:

    I think the main attribute to the colour here is --format=node_modules/cucumber-pretty

    {
    // Use IntelliSense to learn about possible Node.js debug attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
    
        {
            "type": "node",
            "request": "launch",
            "console": "integratedTerminal",
            "name": "Cucumber",
            "program": "${workspaceFolder}/tests/cucumberjs/node_modules/cucumber/bin/cucumber-js",
            "cwd": "${workspaceFolder}/tests/cucumberjs",
            "args": [
                "--tags=@luke",
                "--format=node_modules/cucumber-pretty"
            ]
        }
    ]
    

    }

提交回复
热议问题