PHP code example of php-debug / debugger
1. Go to this page and download the library: Download php-debug/debugger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
php-debug / debugger example snippets
$mtime1 = microtime();
数据库连接操作...
$mtime2 = microtime();
\Debugger\Debugger::_mysql(
'connect', //标签
[], //额外参数,数组形式
array('host' => $this->settings['host'], 'dbname' => $this->settings['dbname']), //主要参数输出
$mtime1, $mtime2 // 开始时间 结束时间
);