Does anyone knows how can i debug puppeteer while it runs headless? I have this E2E Jasmine test which runs fine under non headless mode , but as soon as i run headless , it fails. i'm trying to understand why it fails under headless mode (i'm suspecting it is related to a react render stuff) , but in order to get some common sense , i must use a debugger. P.S the documentation implies i should run non headless in order to see whats going on , but thats not helping in my case :/ Thanks in advance!
You can debug it easily with DEBUG.
Example command to run,
DEBUG=* node app.js
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With