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

14 Replies, 1668 Views

Oh man, I was stuck on this too! Setting `headless: false` works, but here’s a hack—use `devtools: true` with it:

```javascript
await chromium.launch({ headless: false, devtools: true });
```

This pops open Chrome DevTools automatically. Super handy for digging into elements or console logs.

And nah, the speed hit isn’t *that* bad. Just don’t forget to flip it back for CI runs!

Messages In This Thread



Users browsing this thread: 1 Guest(s)