NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Local function variables not visible when opcache is enabled


Joined: 18 Aug 2021
Posts: 3
Reply with quote
Hi,

When opcache is enabled, debugger doesn't show local variables in functions. When opcache is disabled, all variables are shown correctly. Is it possible to configure php to enable opcache and view all local variables in functions?

regards,
Marcin

OS: Linux 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-1Cool x86_64
PhpEd v19
PHP 7.3.29-1~deb10u1
Apache/2.4.38 (Debian)
PHP API 20180731
PHP Extension 20180731
Zend Extension 320180731
Zend Extension Build API320180731,NTS
PHP Extension Build API20180731,NTS
Zend Engine v3.3.29
with DBG v10.0.11
with Zend OPcache v7.3.29-1~deb10u1
View user's profileFind all posts by highwaySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
opcache is not compatible with php debuggers. It's recommended to turn it off if you want to debug.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Aug 2021
Posts: 3
Reply with quote
When I debug php 5.6 on another remote machine (with opcache enabled) with the same local PhpEd instance everything works ok. I can't figure if there are any settings of opcache to make it work with php 5.6 and not work in php 7.4.
Any hints, please?
View user's profileFind all posts by highwaySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
OpCache is an evolving project. Its features are evolving too and compatibility changes over time. What was not broken in 5.6 is broken now. What was crashing in 5.6 is not crashing now. As of php7.3 and higher, DBG is not the only php debugger that affected by OpCache.I'm not aware of any other php debuggers that would work with OpCache under php 7.3 or higher.
Sorry, we don't have any influence on OpCache future plans and fixes. You can try to find a way to report your findings and suggestions to OpCache developers directly.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Aug 2021
Posts: 3
Reply with quote
Dmitri, thanks for your efforts.

regards,
Marcin
View user's profileFind all posts by highwaySend private message
Local function variables not visible when opcache is enabled
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic