略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SAMConnection::setDebug

2024-05-03

SAMConnection::setDebug

(PECL sam >= 1.1.0)

SAMConnection::setDebug Turn on or off additional debugging output

说明

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.

SAMConnection::setDebug ( bool $switch ) : void

参数

switch

If this parameter is set to TRUE additional debugging output will be provided. If the value is set to FALSE output of additional information will be stopped.

返回值

没有返回值。

范例

Example #1 Turn on debugging output

<?php
$conn
->setdebug(TRUE);
?>

Example #2 Turn off debugging output

<?php
$conn
->setdebug(FALSE);
?>
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/samconnection.setdebug.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3