How do I turn playwright headless off for debugging? or Why would you want to turn playwright headles

14 Replies, 1646 Views

For real, debugging in headless is a pain. Turning playwright headless off is simple—just add the flag like everyone said.

But if you’re lazy (like me), you can also set it globally in your `playwright.config.ts`:

```javascript
use: {
headless: false,
}
```

And yeah, it’s slower, but for debugging? Worth it.

Pro move: Combine it with `--workers=1` to avoid flakiness while testing.

Messages In This Thread



Users browsing this thread: 1 Guest(s)