I am trying to debug e2e nightwatch tests using VS Code. I write my tests using typescript. It can only work when I put a breakpoint in the js file, after which it goes into the ts file, and I can debug it from there. If I put it in the ts file of my test, it will never stop and it will be written "Breakpoint is ignored because the generated code was not found." My source files were compiled using the ts compiler to the / dist / dev / specs / e 2e / nightwatch / src folder. Code from launch.json
"name": "Launch e2e Tests on chrome",
"type": "node",
"console": "integratedTerminal",
"program": "${workspaceRoot}/dist/dev/specs/e2e/nightwatch/nightwatch.js",
"stopOnEntry": false,.
"args": ["-env default,-f DatabaseChecks.js"],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,.
"runtimeArgs": ["--nolazy"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/dist/dev/specs/e2e/nightwatch/src"],
"request": "launch"
Maybe someone had a similar problem? Any help would be greatly appreciated.