-
-
Notifications
You must be signed in to change notification settings - Fork 658
Description
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 :
- https://github.com/cytopia/devilbox/blob/v1.9.0/cfg/php-ini-7.2/devilbox-php.ini-default#L57-L61
- https://github.com/cytopia/devilbox/blob/v1.9.0/cfg/php-ini-7.3/devilbox-php.ini-default#L57-L61
- https://github.com/cytopia/devilbox/blob/v1.9.0/cfg/php-ini-7.4/devilbox-php.ini-default#L57-L61
- https://github.com/cytopia/devilbox/blob/v1.9.0/cfg/php-ini-8.0/devilbox-php.ini-default#L57-L61
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 = debug100% 6 secs 251.5 MiB with xdebug_mode = debug and client_port = 9000