Local variables not shown when OPcache is enabled while debugging with Xdebug
问题 I have Xdebug enabled and working together with OPcache. OPcache module is loaded first by phpfpm (important). If you try to debug the code below (from the browser) and put a breakpoing in the local variables you will see that they are not displayed. If I deactivate OPCache everything works as expected. I'm using PhpStorm 2018.2.5 to debug. class Foo { public $member = 'Some value'; public function methodFoo() { $localFoo = "local2"; } } class Bar { public $firstMember = "foo"; public