Skip to content

[Feature]: _debugMode check environment variable every time debugMode() is called #36771

@peteryongzhong

Description

@peteryongzhong

🚀 Feature Request

Right now the _debugMode caches the environment variable PWDEBUG the moment playwright is opened. It would be great if debugMode() could check the environment variable everytime.

Example

No response

Motivation

This change means that there would be a way of temporarily setting that environment variable to force playwright to go into debug mode programmatically. It get us some really nice things, for example, access to the console api which can be interacted programmatically.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions