mrafiqk / html-pdf-node

187 stars 119 forks source link

Add debugging possibilities #19

Open steven266 opened 3 years ago

steven266 commented 3 years ago

Hi,

We were building an HTML file with external ressources (asynchronously loaded by JavaScript) that were not displayed at first. With the possiblities given, it was a little bit difficult to point down the problem. So we added the dumpio argument to puppeteer's launch function to gain some more insights:

const browser = await puppeteer.launch({
    dumpio: true,
    args: args
});

Would you consider adding a possiblity to enable dumpio? If so, we could also contribute via pull request.

Best regards, Steven