View Issue Details

IDProjectCategoryView StatusLast Update
0001685XdebugStep Debuggingpublic2020-03-12 16:43
Reporterhuguesalary Assigned Toderick  
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.7.2 
Summary0001685: OPCache disabled by xdebug should be opt-in (or opt-out)
Description

Version 2.7.2 introduced a feature that disables opcache when xdebug is on.

Here's the original bug report that triggered the change: https://bugs.xdebug.org/bug_view_page.php?bug_id=00001615

This change unfortunately has a major impact on my application. It so happen that my application heavily relies on OPCache for its performances. Without OPCache on, the performances plummets to the point of the app being unusable.

This is hugely problematic in my xdebug enabled development environment.

Would it be possible to make the "opcache disabled" an opt-out (or opt-in) feature via a php configuration?

TagsNo tags attached.
Operating System
PHP Version7.3.2-7.3.4

Activities

huguesalary

2019-07-18 00:04

reporter   ~0005067

After trying to use version 2.7.1 (which supposedly does not implement https://bugs.xdebug.org/bug_view_page.php?bug_id=00001615) I realized that my application still becomes unresponsive.

So it seems the slowness issue might be coming from something else and not merely version 2.7.2.

Disabling xdebug (by commenting out zend_extension=xdebug.so) makes my app's performance go back to normal.

I've been using xdebug for a very long time and never noticed any slowness until I tried migrating to PHP 7.3.

Before that, I was running PHP 7.0 with xdebug 2.5.0, with no issue.

Here are my settings:

      zend_extension=xdebug.so
      xdebug.remote_enable=1
      xdebug.remote_host=192.168.64.1
      xdebug.profiler_enable_trigger=1
      xdebug.profiler_output_dir=/var/www/xdebug
      xdebug.trace_enable_trigger=1
      xdebug.trace_output_dir=/var/www/xdebug

derick

2019-07-18 10:58

administrator   ~0005069

Xdebug only turns off OPcache optimisation (and not all of OPcache), only when the debugger is enabled: https://github.com/xdebug/xdebug/blob/10469d2829cc3b32a1b51449901223b63300faec/xdebug.c#L1259-L1276 — if you're running your app with the step debugger, not having OPcache optimisation enabled is not going to be a noticeable difference.

Issue History

Date Modified Username Field Change
2019-07-17 23:23 huguesalary New Issue
2019-07-18 00:04 huguesalary Note Added: 0005067
2019-07-18 10:58 derick Assigned To => derick
2019-07-18 10:58 derick Status new => resolved
2019-07-18 10:58 derick Resolution open => no change required
2019-07-18 10:58 derick Note Added: 0005069
2020-03-12 16:43 derick Category Feature/Change request => Step Debugging