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.
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.
