Skip to content

Xdebug 3.0 with PHP 7.2, 7.3, 7.4 and 8.0 #769

@llaville

Description

@llaville

ISSUE TYPE

  • Feature request

SUMMARY

Migrate from old to new settings.

Goal

Xdebug v3 is a new major version that changed a lot especially on behavior and settings.
See the Xdebug Official Upgrade Guide

Following changes that were started with FR #746, Devilbox need again to be clean-up !

While I've started to introduced OPCache settings in a custom php.ini config file, I found that old settings from Xdebug v2 are still mentioned in default config files. Look at :

I suggest to remove these settings, and only used default provided by extension itself and other settings set in devilbox-php.ini-xdebug files

BTW, these files must be fixed as I've already said (#746 (comment))

I recommand to use these default settings :

xdebug.mode               = off
xdebug.start_with_request = yes
xdebug.client_port        = 9003
xdebug.idekey             = PHPSTORM
xdebug.log                = /var/log/php/xdebug.log

See Official Upgrade Guide

And especially to use mode = off by default, because even with xdebug 3.0.1 it consume more time and memory.

A little benchmark I've run on one of my CLI script took :

  • 100% 6 secs 251.5 MiB with xdebug.mode = off
  • 100% 1 min 301.5 MiB with xdebug.mode = trace
  • Fatal error with xdebug.mode = debug 100% 6 secs 251.5 MiB with xdebug_mode = debug and client_port = 9000

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions