Skip to content

Instantly share code, notes, and snippets.

@joeynguyen
Created July 17, 2017 17:41
Show Gist options
  • Save joeynguyen/13e8960e3c43c304f6fcf9a0d18d7664 to your computer and use it in GitHub Desktop.
Save joeynguyen/13e8960e3c43c304f6fcf9a0d18d7664 to your computer and use it in GitHub Desktop.
WebDriverIO/Cucumber.js Visual Studio Code "Debugging" launch config
{
// 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",
"protocol": "legacy",
"port": 5859,
"name": "Debug",
"runtimeExecutable": "/usr/local/opt/nvm/versions/node/v6.11.0/bin/node",
"cwd": "${workspaceRoot}",
"console": "integratedTerminal",
// This args config runs only the file that's open and displayed
// (e.g., a file in test/spec/):
"args": ["node_modules/.bin/wdio", "wdio.conf.js", "--env=dev",
// To debug the file in your VS Code current tab:
// "--spec", "${relativeFile}"
// To run a specific file, you can also do:
"--spec=./features/v9/widgets/buttonblock.default.v1.feature"
// DO NOT USE THE COMMAND BELOW. It's just there for reference
// because it's used by the package.json script to test all files
// but it should not be used in 'debug' mode unless you want tons of
// Chrome debug windows to open at the same time
// "--cucumberOpts.tags", "\"~@singleId\""
]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment