mysqli debug() Method
The mysqli::debug() / mysqli_debug() function is used to perform debugging operations using the Fred Fish debugging library.
Syntax
//Object-oriented style public mysqli::debug(options) //Procedural style mysqli_debug(options)
Parameters
options |
<field_1>:<field_2>:<field_N> Each field consists of a mandatory flag character followed by an optional , and comma separated list of modifiers: flag[,modifier,modifier,...,modifier] The option characters are:
|
Return Value
Returns true.
Example: Generating a Trace File
The example below shows the usage of mysqli::debug() method.
<?php //creating a trace file in '/tmp/client.trace' //on the local (client) machine mysqli_debug("d:t:o,/tmp/client.trace"); ?>
❮ MySQLi Functions Reference