Turning playwright headless off is def the way to go for debugging. Just do:
```javascript
const browser = await playwright.chromium.launch({ headless: false });
```
But heads up—it *will* be slower. Not unbearable, but noticeable.
If you wanna avoid it, try `playwright inspector` (`PWDEBUG=1` env var). It’s like having a debugger built-in without messing with headless mode.
Also, `page.pause()` is a lifesaver for stepping through tests.
```javascript
const browser = await playwright.chromium.launch({ headless: false });
```
But heads up—it *will* be slower. Not unbearable, but noticeable.
If you wanna avoid it, try `playwright inspector` (`PWDEBUG=1` env var). It’s like having a debugger built-in without messing with headless mode.
Also, `page.pause()` is a lifesaver for stepping through tests.
