-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Question] How to disable Debug mode, once I set PWDEBUG in env. variable now it's always running in debug mode #5649
Comments
What do you call a debug mode? pw:api only prints the logs, it isn't a debug mode, PWDEBUG=1 is. |
Probably you used
or create a new terminal shell. |
@pavelfeldman, even though by just using node Filename.js. it's opening the inspector tool every-time and has to explicitly press the play button to continue the execution. It's been only a few days that I am using Playwright, maybe I've missed something but I think the inspector feature introduced in 1.9.1 a few days ago only. |
No, I only used set DEBUG=pw:api |
Could you check if your environment has PWDEBUG variable set? |
@pavelfeldman , Yes env. had PWDEBUG variable set to 1. after deleting it. the scripts are running fine but to check I set the variable again it was again launching the browser along with inspector even after simply just running the script using node fiilename.js. Is this expected behavior that we have to explicitly add and delete PWDEBUG variable every-time we want to debug using inspector cuz it could be a little tedious. |
You can use npx cross-env PWDEBUG=1 node test.js This will only enable this environment variable for the time of execution. |
No description provided.
The text was updated successfully, but these errors were encountered: