on-internet
← Community

Debugging Cypress tests in Visual Studio Code

Stack Overflow ·

I want to use VS Code to edit and debug Cypress tests. The cypress docs mention VS Code directly, but don't give any clues about how to configure VS Code's launch.json file for debugging either there or on the debugging page. I have a launch.json configuration that starts cypress/electron, but VS Code gives this error: Cannot connect to runtime process… connect ECONNREFUSED 127.0.0.1:5858 Then shuts it down. Looking at the sample electron for VS Code project doesn't help, and adding protocol or program attributes didn't work. Here is my configuration: { "name": "Start integration_tests", "type

Comments

Sign in or sign up to comment and upvote.

No comments yet.