You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the programatic API to generate a PDF from a markdown variable. When I generate PDFs, it would help me to analyse the HTML and debug issues / play around in the browser devtools console.
But setting this just opens to browser for a split second.
There's a --devtools CLI flag that does exactly this (without the headless: false which iirc is implied when devtools is enabled), and last time i tried it worked, but it's been a long while.
Just looking into it and I think the problem is that here it's checking only the config option but not the launch_options:
Should change this to access the property from the Puppeteer browser class I guess, but in the meantime you should be able to get it to work by setting devtools: true in the config that you pass to the mdToPdf function call.
Problem:
I use the programatic API to generate a PDF from a markdown variable. When I generate PDFs, it would help me to analyse the HTML and debug issues / play around in the browser devtools console.
But setting this just opens to browser for a split second.
Solution:
ability to provide a setting that would keep the browser open.
The text was updated successfully, but these errors were encountered: