'How to debug puppeteer code with headless mode?

I want to see what my code is doing in the browser but I can't use headless: false because that causes detecting me as a bot. Is any way to view the browser without turning headless mode off?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source