-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[Bug]: Debugging does not run when breakpoints are put on tests for file names containing Japanese characters. #31721
Comments
@dinoss0809 Could you please provide a full repro so that we can debug the issue locally? I also noticed that you are probably running in a container (based on the VSCode remote-cli). If so, perhaps you should enable UTF-8 support inside the container? This is what Playwright's image does. Let me know whether that helps. |
@dgozman Here are the steps I followed:
This issue occurs even when setting up the Playwright environment directly on Windows and attempting to debug tests with Japanese characters in file names. |
I added a breakpoint in node_modules/playwright/lib/runner/testServer.js and observed that it stopped at this line in runTestServer: The issue occurs when the file name contains Japanese characters and there is a breakpoint. It fails in the function within node_modules/playwright/lib/common/esmLoaderHost.js. (It works when there is no breakpoint.)
In version 1.42.0, this function did not get called because it returned early in node_modules/playwright/lib/common/configLoader.js:
|
I have filed an upstream issue for the javascript debugger: microsoft/vscode-js-debug#2043 |
I was redirected to a Node issue nodejs/node#50516. I'll close as non-actionable in Playwright. |
Version
1.45.2
Steps to reproduce
1.Create an environment by doing the following
npm init playwright@latest
2. Rename the file example.spec.ts to include Japanese characters.
example.spec.ts → テスト_example.spec.ts
3. Place breakpoints at appropriate locations.
4. Debugging tests from the Test Explorer
Expected behavior
Debugging runs and stops at breakpoints
Actual behavior
Debugging does not run.
Also, the test remains running permanently, and VSCode must be exited once to run another test.
Additional context
The same applies even if the folder name is in Japanese.
Not reproduced in the following environments
Playwright: 1.42.0
Environment
The text was updated successfully, but these errors were encountered: