Tôi tự hỏi làm thế nào tôi có thể thấy lỗi cú pháp như thế này (thiếu dấu chấm phẩy):Làm thế nào để gỡ lỗi php lỗi nghiêm trọng trong silex Khung
<?php
var_dump($app)
?>
này sẽ gây ra một WSOD (màn hình trắng của cái chết).
tôi đã cố gắng để bao gồm một tập tin gỡ lỗi cấu hình mà trông như thế này:
use Symfony\Component\Debug\ErrorHandler;
use Symfony\Component\Debug\Debug;
// Include the prod configuration
require __DIR__.'/prod.php';
// Enable PHP Error level
error_reporting(E_ALL);
ini_set('display_errors','On');
// Enable debug mode
$app['debug'] = true;
// Handle fatal errors
ErrorHandler::register();
Debug::enable();
tôi có trong nhà soạn nhạc tệp json:
"symfony/debug": "~ 2.3",
Nhưng vẫn không có thay đổi. Tôi đã quên gì?