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

14 Replies, 1675 Views

Yep, you got it! Just set `headless: false` in your launch options, and you're golden.

For example:
```javascript
await chromium.launch({ headless: false });
```

It *does* slow things down a bit, but for debugging, it’s totally worth it.

Pro tip: Use `slowMo` to slow down actions so you can see what’s happening step by step. Like this:
```javascript
await chromium.launch({ headless: false, slowMo: 100 });
```

Also, check out Playwright’s [debugging docs](https://playwright.dev/docs/debug)—super helpful!

Messages In This Thread



Users browsing this thread: 1 Guest(s)