PHPStorm 2020.3 not supporting multiple values for xdebug.mode (xdebug 3.01)
For xdebug 3.01 in my dev environment I need to set "xdebug.mode = debug,develop" so I can use xdebug extensions for logging/tracing. This is a valid xdebug 3 setting. PHPStorm (2020.3) objects to this setting in the debugging validation script and flags it as an error. As a result debugging is no longer working whereas it all used to work fine with xdebug 2.8. Any way to fix this? - if I drop the 'develop' from the mode value I see loads of warnings on my webpages so not worth it!
Cheerrs
Please sign in to leave a comment.
Not sure if affects actual debugging, but there is a known issue with the failed validation when multiple modes are specified, please check:
https://youtrack.jetbrains.com/issue/WI-57420
Hi Vasiliy - Thanks yes that is my exact issue, did not think to check the issue tracking. Seems the original poster also had issues with debugging as well so there may be more to this. Will investigte further.
@Hywel Jones
There is nothing from original poster there, only the original report.
In case of web debug PhpStorm just listens, so from IDE side of things it cannot influence your web server/Xdebug into having "correct" Xdebug mode.
For CLI debug it overwrites some of the needed Xdebug params by default by passing them to PHP executable (and xdebug.mode will have `debug` in such case).
Therefore the value of xdebug.mode param should not be affecting the actual debugging process/session (works fine here on Windows 10, Xdebug 3.0.2, PHP 8.0.1 & 7.4.14). Validation is a completely optional thing and just for info purposes to show the most important stuff; it does not change anything.