Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save inigomarquinez/b18141c4326d3164c515230d146b4f27 to your computer and use it in GitHub Desktop.
Save inigomarquinez/b18141c4326d3164c515230d146b4f27 to your computer and use it in GitHub Desktop.
How to configure Visual Studio Code for Cypress test debugging
{
"version": "0.2.0",
"configurations": [
// Configuration used to debug the application (default configuration created by Visual Studio Code )
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
},
// Configuration used to debug Cypress tests
{
"type": "chrome",
"request": "attach",
"name": "Attach to Cypress",
"port": 9222,
"url": "http://localhost*",
"webRoot": "${workspaceFolder}/src",
"sourceMaps": true,
"skipFiles": [
"cypress_runner.js",
],
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment