-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am unable to execute tests with the Playwright test runner in debug mode #2137
Comments
What version of VS Code are you using? |
Version: 1.95.3 (system setup)
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.19045
El vie, 29 nov 2024 a las 19:08, Connor Peet ***@***.***>)
escribió:
… What version of VS Code are you using?
—
Reply to this email directly, view it on GitHub
<#2137 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATTZI3HJQZGINFDCWDTICVD2DDQUPAVCNFSM6AAAAABSXKY76OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBYGY4TQMZUGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Please collect a log file using the instructions in the issue template, thanks! |
I don't understand what you mean specifically with the log. I told you that I tried to run the same project on another notebook with the same version of Vscode and it works perfectly. I assume it is something related to the notebook configuration, permissions and firewall. |
These are the instructions on how to capture a trace log:
|
What version of Node.js are you using? |
I am unable to execute tests with the Playwright test runner in debug mode under the following conditions:
Debugging with Breakpoints:
When I run tests in debug mode and set a breakpoint, the execution does not start and becomes unresponsive.
(Refer to the attached image for reference: "See Image").
Frozen Execution:
The test execution remains frozen, as shown in the image.
(Refer to the attached image for reference: "See Image").
Console Error Message:
If I stop the execution manually, I see the following message in the console:
arduino
Copiar código
Process exited with code 1
Despite the error message, the execution timer continues to run, and the only way to fully terminate the process is by closing VSCode entirely.
(Refer to the attached image for reference: "See Image").
Workaround with Debugging:
The only way I have managed to debug tests is by:
Starting the debug execution without breakpoints.
Adding the breakpoint after the browser instance has launched.
(Refer to the attached image for reference: "See Image").
Configuration Details
Below is my tsconfig.json configuration:
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"sourceMap": true,
"outDir": "./dist",
"resolveJsonModule": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": false,
"noImplicitAny": false,
"skipLibCheck": true
},
"include": ["tests//*.ts", "pages//*.ts", "run-tests-by-tags.js"],
"exclude": ["node_modules"]
}
And here is my launch.json configuration:
{
"name": "Debug Playwright Tests with ts-node",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/node_modules/ts-node/dist/bin.js",
"args": ["${workspaceFolder}/tests/Administracion.spec.ts"],
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**"]
}
Bug Report for VSCode
Issue Description
I am unable to execute tests with the Playwright test runner in debug mode under the following conditions:
Debugging with Breakpoints:
When I run tests in debug mode and set a breakpoint, the execution does not start and becomes unresponsive.
(Refer to the attached image for reference: "See Image").
Frozen Execution:
The test execution remains frozen, as shown in the image.
(Refer to the attached image for reference: "See Image").
Console Error Message:
If I stop the execution manually, I see the following message in the console:
arduino
Process exited with code 1
Despite the error message, the execution timer continues to run, and the only way to fully terminate the process is by closing VSCode entirely.
(Refer to the attached image for reference: "See Image").
Workaround with Debugging:
The only way I have managed to debug tests is by:
Starting the debug execution without breakpoints.
Adding the breakpoint after the browser instance has launched.
(Refer to the attached image for reference: "See Image").
Configuration Details
Below is my tsconfig.json configuration:
json
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"sourceMap": true,
"outDir": "./dist",
"resolveJsonModule": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": false,
"noImplicitAny": false,
"skipLibCheck": true
},
"include": ["tests//*.ts", "pages//*.ts", "run-tests-by-tags.js"],
"exclude": ["node_modules"]
}
And here is my launch.json configuration:
json
{
"name": "Debug Playwright Tests with ts-node",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/node_modules/ts-node/dist/bin.js",
"args": ["${workspaceFolder}/tests/Administracion.spec.ts"],
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**"]
}
Expected Behavior
Actual Behavior
Steps to Reproduce
Additional Notes
The text was updated successfully, but these errors were encountered: