View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001906 | Xdebug | Step Debugging | public | 2020-12-07 16:55 | 2020-12-10 12:14 |
| Reporter | pounard | Assigned To | derick | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 3.0.0 | ||||
| Summary | 0001906: XDEBUG_TRIGGER doesn't trigger anything when using PHPUnit | ||||
| Description | It seems that PHPUnit or anything else messes up with $_ENV global variable on my environment. I'm running the debug session this way: XDEBUG_TRIGGER=1 vendor/bin/phpunit --filter=KernelConfigurationTest My configuration is: cat /etc/php/conf.d/xdebug.ini If I print_r($_ENV), I only get this: ( Which are PHPUnit env vars from the phpunit.xml file. But, whenver I do this: print_r(\getenv('XDEBUG_TRIGGER')); PHP prints out the variable from the commandline (which is what I'm awaiting for). Yet, XDebug still doesn't trigger. Am I missing something here ? Please note I also tried using legacy variables as documented XDEBUG_SESSION and XDEBUG_SESSION_START. The /tmp/xdebug.log file has been created, but nothings goes into it. Just for information, before XDebug 3.0.0 I always did the same, with XDEBUG_CONFIG="" to trigger it, it was working fine, something seems to have changed in the way you read $_ENV variables, or something changed in PHP 8 that doesn't like my configuration (I didn't changed it since the upgrade of XDebug and PHP). | ||||
| Steps To Reproduce | Run: XDEBUG_TRIGGER=1 vendor/bin/phpunit --filter=KernelConfigurationTest And see nothing happening. | ||||
| Additional Information | Header of my php -i phpinfo() System => Linux blaster 5.9.11-arch2-1 #1 SMP PREEMPT Sat, 28 Nov 2020 02:07:22 +0000 x86_64 PHP API => 20190902 Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip This program makes use of the Zend Scripting Language Engine: | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 8.0.0-8.0.4 | ||||
|
|
Oh, I'm really sorry for the noise, you changed approximately all the configuration variables names, I wrongly ommited to replace remote* using client* variables. It still doesn't explain why the xdebug log is empty, but I'll continue searching on my own. Once again, thank you for everything, XDebug is the tool I use the most everyday, love it ! |
|
|
This issue can be closed. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-12-07 16:55 | pounard | New Issue | |
| 2020-12-08 09:23 | pounard | Note Added: 0005572 | |
| 2020-12-08 09:23 | pounard | Note Added: 0005573 | |
| 2020-12-10 12:14 | derick | Assigned To | => derick |
| 2020-12-10 12:14 | derick | Status | new => closed |
| 2020-12-10 12:14 | derick | Resolution | open => no change required |