Php 如何显示标准yii stacktrace?

Php 如何显示标准yii stacktrace?,php,exception-handling,yii,stack-trace,Php,Exception Handling,Yii,Stack Trace,我有标准的错误处理与美丽的错误页面。但对于开发环境,我需要下面的标准stacktrace 例: 如果我评论“errorAction”,我只能看到standart stacktrace,在其他情况下,我无法显示此stacktrace 'errorHandler' => array( 'class' => 'ErrorHandler', 'errorAction' => 'page/find', ), 默认情况下,错误处理程序使用两种类型的

我有标准的错误处理与美丽的错误页面。但对于开发环境,我需要下面的标准stacktrace

例:

如果我评论“errorAction”,我只能看到standart stacktrace,在其他情况下,我无法显示此stacktrace

'errorHandler' => array(
        'class' => 'ErrorHandler',
        'errorAction' => 'page/find',
    ),

默认情况下,错误处理程序使用两种类型的视图 产品名为error.php; 名为exception.php的开发

基于路由和错误处理程序代码。我看到您已经定义了自定义错误操作 您必须将自定义错误视图以下面链接中指定的格式放置在以下任一文件夹中,并使用标准错误操作

'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                array(
                    'class' => 'CWebLogRoute',
                    'categories' => 'application, exception.*',
                    'levels'=>'error, warning, trace, profile, info',
                    'showInFireBug' => true,
                    'enabled' => YII_DEBUG,
                ),
                array(
                    'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                    'ipFilters'=>array('127.0.0.1','192.168.0.100'),
                ),
                array(
                    'class'=>'CProfileLogRoute',
                    'report'=>'summary',
                    // Shows the execution time of each labeled with a code block.
                    // The value of "report" can also be specified as a "callstack".
                ),

            ),
        ),
有关详细说明,请参阅本文档 参考资料:

请尝试此扩展

Yii调试工具栏是一组可配置的面板,显示有关当前请求/响应的各种调试信息,单击时显示有关面板内容的更多详细信息。 它是一个移植到PHP著名的Django调试工具栏


在上面张贴我的日志,查看我修改后的答案,并编辑您的问题,而不是添加信息作为答案,这将帮助有类似疑问的人,谢谢,希望我的解释能有所帮助
themes/ThemeName/views/system: when a theme is active.
protected/views/system