How to debug Cucumber in Visual Studio Code (VSCode)?

前端 未结 4 1887
既然无缘
既然无缘 2021-01-02 09:57

I was trying to debug Cucumber scenarios in Visual Studio code and made below changes in the launch.json.

{
            \"name\": \"e2e\",
              


        
4条回答
  •  北海茫月
    2021-01-02 10:42

    This works

    {
        "name": "DebugMode",
        "type": "node",
        "request": "launch",
        "program": "${workspaceRoot}/node_modules/cucumber/bin/cucumber-js",
        "args": [
            "${workspaceRoot}/features/*.feature",
            "--tags", "@debug"
        ]
    }
    

提交回复
热议问题