Skip to content
Advertisement

XDEBUG_PATH_EXCLUDE in xdebug.ini

I have a setup with CentOS where xdebug 3 is installed.

As we are having problems with our umask for PHP processes with have in the php.ini added an umask.php file with auto_prepend_file, when triggering XDEBUG this file is of course hit as first, but have no mapping locally.

I have looked into the option: XDEBUG_PATH_EXCLUDE where I could add the path to the umask file, but here we have a chicken egg problem, because I cannot exclude it before it’s already loaded.

Does an option exist to exclude it within the xdebug.ini file? I haven’t found any indication that this option exists, but it doesn’t mean that it’s case.

Advertisement

Answer

XDEBUG_PATH_EXCLUDE is only used with xdebug_set_filter, which can filter out files for code coverage or stack traces only, and not for debugging.

Even if you could add it in an ini file (you can’t), it wouldn’t do anything.

I would recommend that you find out how to solve your original problem, “As we are having problems with our umask for PHP processes…”, instead of coming up with a “hack” to change the umask with an auto prepend file.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement