Trace调试功能type=>'socket',class not exists?

浏览:770 发布日期:2017/04/29 分类:ThinkPHP5专区 关键字: Trace,socket,app_trace
使用ThinkPHP5的Trace调试功能里,在配置文件中内容如下:
<?php
return [
'default_return_type'=>'json',
// 应用Trace
'app_trace' => true,
'trace' => [
'type' => 'socket',
// socket服务器
'host' => 'localhost',
],
];
当app_trace设置为false时,程序正常,当改为true时,出现下面的错误(页面title变成了Access forbidden!)

Fatal error: Uncaught exception 'think\exception\ClassNotFoundException' with message 'class not exists:\think\debug\Socket' in /Applications/XAMPP/xamppfiles/htdocs/tp505/thinkphp/library/think/Debug.php:194 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/tp505/thinkphp/library/think/Response.php(98): think\Debug::inject(object(think\Response), '<!DOCTYPE html>...') #1 /Applications/XAMPP/xamppfiles/htdocs/tp505/thinkphp/library/think/Error.php(47): think\Response->send() #2 [internal function]: think\Error::appException(object(think\exception\ClassNotFoundException)) #3 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/tp505/thinkphp/library/think/Debug.php on line 194
最佳答案
评论( 相关
后面还有条评论,点击查看>>