<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Performs debugging operations</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mysqli.construct.html">mysqli::__construct</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysqli.dump-debug-info.html">mysqli::dump_debug_info</a></div> <div class="up"><a href="class.mysqli.html">mysqli</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="mysqli.debug" class="refentry"> <div class="refnamediv"> <h1 class="refname">mysqli::debug</h1> <h1 class="refname">mysqli_debug</h1> <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mysqli::debug</span> -- <span class="refname">mysqli_debug</span> — <span class="dc-title">Performs debugging operations</span></p> </div> <div class="refsect1 description" id="refsect1-mysqli.debug-description"> <h3 class="title">Description</h3> <p class="para">Object oriented style</p> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>mysqli::debug</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$message</code></span> )</div> <p class="para rdfs-comment">Procedural style</p> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>mysqli_debug</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$message</code></span> )</div> <p class="para rdfs-comment"> Performs debugging operations using the Fred Fish debugging library. </p> </div> <div class="refsect1 parameters" id="refsect1-mysqli.debug-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">message</code></em></span> <dd> <p class="para"> A string representing the debugging operation to perform </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-mysqli.debug-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong>. </p> </div> <div class="refsect1 notes" id="refsect1-mysqli.debug-notes"> <h3 class="title">Notes</h3> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> To use the <span class="function"><strong>mysqli_debug()</strong></span> function you must compile the MySQL client library to support debugging. </p> </p></blockquote> </div> <div class="refsect1 examples" id="refsect1-mysqli.debug-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-1657"> <p><strong>Example #1 Generating a Trace File</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br /><br /></span><span style="color: #FF8000">/* Create a trace file in '/tmp/client.trace' on the local (client) machine: */<br /></span><span style="color: #0000BB">mysqli_debug</span><span style="color: #007700">(</span><span style="color: #DD0000">"d:t:o,/tmp/client.trace"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> </div> </p> </div> <div class="refsect1 seealso" id="refsect1-mysqli.debug-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="mysqli.dump-debug-info.html" class="function" rel="rdfs-seeAlso">mysqli_dump_debug_info()</a> - Dump debugging information into the log</span></li> <li class="member"> <span class="function"><a href="function.mysqli-report.html" class="function" rel="rdfs-seeAlso">mysqli_report()</a> - Alias of of mysqli_driver->report_mode</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mysqli.construct.html">mysqli::__construct</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysqli.dump-debug-info.html">mysqli::dump_debug_info</a></div> <div class="up"><a href="class.mysqli.html">mysqli</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>