mPDF Manual – mPDF Variables

debug

(mPDF >= 3.1)

debug – Turn on debugging messages

Description

void debug

Specify whether to show debugging messages. If you are having problems with mPDF, set $debug to TRUE to show error and warning  messages that may otherwise be suppressed.

Values

$debugTRUE FALSE

Values

TRUE : enable debugging

FALSE: disable debugging

DEFAULT: FALSE

Changelog

VersionDescription
3.1 Variable was added.

Examples

Example #1

<?php

// Require composer autoload
require_once __DIR__ . '/vendor/autoload.php';

$mpdf = new mPDF();

$mpdf->debug = true;

$mpdf->WriteHTML("Hallo World");

$mpdf->Output();

?>

See Also