📄 function.samconnection-setdebug.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Turn on or off additional debugging output.</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.samconnection-send.html">SAMConnection->send</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.samconnection-subscribe.html">SAMConnection->subscribe</a></div> <div class="up"><a href="ref.sam.html">SAM Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.samconnection-setDebug" class="refentry"> <div class="refnamediv"> <h1 class="refname">SAMConnection::setDebug</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">SAMConnection::setDebug</span> — <span class="dc-title"> Turn on or off additional debugging output. </span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <p class="para"> The "setdebug" method is used to turn on or off additional debugging output. The SAM framework will provide method/function entry and exit trace data plus additional information. Protocol specific implementations also provide extra output. </p> <div class="classsynopsis"> <div class="ooclass"><b class="classname">SAMConnection</b></div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><b><b>send</b></b></span> ( <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$switch</tt></span> )</div> </div> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">switch</tt></i></span> <dd> <p class="para"> If this parameter is set to <b><tt>TRUE</tt></b> additional debugging output will be provided. If the value is set to <b><tt>FALSE</tt></b> output of additional information will be stopped. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example"> <p><b>Example #1 Turn on debugging output</b></p> <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB"><?php<br />$conn</span><span style="color: #007700">-></span><span style="color: #0000BB">setdebug</span><span style="color: #007700">(</span><span style="color: #0000BB">TRUE</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span></span></code></div> </div> </div> </p> <p class="para"> <div class="example"> <p><b>Example #2 Turn off debugging output</b></p> <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB"><?php<br />$conn</span><span style="color: #007700">-></span><span style="color: #0000BB">setdebug</span><span style="color: #007700">(</span><span style="color: #0000BB">FALSE</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span></span></code></div> </div> </div> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.samconnection-send.html">SAMConnection->send</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.samconnection-subscribe.html">SAMConnection->subscribe</a></div> <div class="up"><a href="ref.sam.html">SAM Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -