Debugging javascript in wkhtmltopdf

后端 未结 3 552
没有蜡笔的小新
没有蜡笔的小新 2021-01-01 13:57

Where I can see the output of javascript debug when wkhtmltopdf runs in debug mode (--debug-javascript)

3条回答
  •  误落风尘
    2021-01-01 14:41

    Another (I would say easiest) means of debugging javascript in WKHTMLTOPDF is to download QT Browser, the underlying browser used by WKHTMLTOPDF, and to inspect the javascript execution for your page from within the browser.

    You can download it from here

    Instructions on debugging javascript in QT here

    You can basically debug your JavaScript in QT Browser just as you would in Chrome or Firefox.

提交回复
热议问题