I was trying to debug Cucumber scenarios in Visual Studio code and made below changes in the launch.json.
launch.json
{ \"name\": \"e2e\",
This works
{ "name": "DebugMode", "type": "node", "request": "launch", "program": "${workspaceRoot}/node_modules/cucumber/bin/cucumber-js", "args": [ "${workspaceRoot}/features/*.feature", "--tags", "@debug" ] }