2016-12-27 45 views
0

苗條2我曾經得到錯誤追溯。但在超薄3只顯示我,苗條3沒有錯誤追蹤php

enter image description here

如何獲得完整回溯?

我嘗試添加( 'displayErrorDetails'=>真),但仍是同樣的問題

我是新來的苗條3

+1

所有點到'displayErrorDetails'爲'false'。你是否在使用「瘦身骨骼」?你究竟在哪裏設置指令? –

回答

0

考慮切換addContentLengthHeaderdisplayErrorDetails一起:

<?php 
$configuration = [ 
    'settings' => [ 
     'displayErrorDetails' => true, 
     'addContentLengthHeader' => false, 
    ], 
]; 
$c = new \Slim\Container($configuration); 
$app = new \Slim\App($c); 
+0

如何省略「Content-Length」標題導致顯示簡化的錯誤頁面視圖? –