Tagged with: [ cache ] [ symfony ] [ xdebug ]
Don’t you hate it when you are stepping through your debugger during a Symfony application debug
session, and all of a sudden it cannot find files anymore as Symfony uses code located in the
bootstrap.php.cache instead of the actual Symfony component. Symfony creates these cache-classes
in order to speed up execution, but it makes that xdebug cannot find the correct code to step
It’s probably posted many times already, but I couldn’t find it so I’m adding it to my blogpost as well, but it’s an easy fix. In your app_dev.php, change the following:
From this point on, Symfony will use the original code which you can easily step through.