How to automatically improve debugging in symfony2

I tried to debug using symfony2 before, and dealing with cache is a great pain

Solution

I'm on the app_ This code (based on this official document) is added to dev.php to meet my requirements:

Change:

$loader = require_ once __ DIR __.’/ .. / app / bootstrap. PHP. cache’;

yes:

if( !isset($_COOKIE['XDEBUG_SESSION']) )
    $loader = require_once __DIR__.'/../app/bootstrap.PHP.cache';
else
    $loader = require_once __DIR__.'/../app/autoload.PHP';

and

$kernel level > loadclasscache();

with

if( !isset($_COOKIE['XDEBUG_SESSION']) )
    $kernel->loadClassCache();
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>