View Issue Details

IDProjectCategoryView StatusLast Update
0002023XdebugUncategorizedpublic2021-09-28 15:47
ReporterJurigag Assigned Toderick  
PrioritynoneSeverityminorReproducibilityN/A
Status closedResolutionno change required 
Summary0002023: Warn when trying to set xdebug.mode via -d option
Description

I think it could be good to echo some warning when trying to set xdebug.mode via -d option that user should use XDEBUG_MODE environment variable.

This actually comes due to current PHPStorm documentation, not sure if this was changed in xdebug itself(because i thought it was working like -dxdebug.mode=debug). I was thinking a few hours with this why my xdebug is not working at all, and this was a reason....

Also there was no information about this in logs or whatsover, pretty hard to debug really.

TagsNo tags attached.
Operating System
PHP Version8.0.5-8.0.9

Activities

derick

2021-09-28 15:28

administrator   ~0006056

Your assessment is incorrect. There is no need to use XDEBUG_MODE to set modes. You can do that, as described in the documentation, with the xdebug.mode setting. If you also set XDEBUG_MODE in the environment, it overrides the xdebug.mode setting. If you examine the output of xdebug_info() you will see which modes are set, and through which method.

Jurigag

2021-09-28 15:46

reporter   ~0006057

Yea but what i mean you can't set xdebug.mode via -d like php -dxdebug.mode=debug actually doesn't work. Even though in phpinfo it says it is debug, but in reality it doesn't work.

Jurigag

2021-09-28 15:47

reporter   ~0006058

I mean it doesn't work if you already have xdebug.mode=coverage for example in php.ini

Issue History

Date Modified Username Field Change
2021-09-28 14:44 Jurigag New Issue
2021-09-28 15:28 derick Assigned To => derick
2021-09-28 15:28 derick Status new => closed
2021-09-28 15:28 derick Resolution open => no change required
2021-09-28 15:28 derick Note Added: 0006056
2021-09-28 15:46 Jurigag Note Added: 0006057
2021-09-28 15:47 Jurigag Note Added: 0006058