This example script is going to simply start Puppeteer and will keep it open until the user stops the execution. To get started, you will need a functional puppeteer script that remains open so we can debug what's going on. In this article, I will explain you shortly how to connect to debug a Puppeteer script using Google Chrome's Remote Debugger. Debugging is easy using the Chrome Dev Tools as long as the headless mode is disabled, however when is enabled (in an environment where it needs to be disabled obligatorily like a server) it's not that easy to debug without the proper tools. A lot of projects decide to use Puppeteer for any of the mentioned tasks in their projects, however not everyone knows how to debug an instance of Chrome being manipulated by Puppeteer in headless mode. Puppeteer can be used nowadays for multiple things such as web scraping, automation and testing purposes.
0 Comments
Leave a Reply. |