I recently installed xdebug on my ststem and wanted to increase xdebug.var_display_max_depth from 3 to 10. How can I go about doing that?
I recently installed xdebug on my ststem and wanted to increase xdebug.var_display_max_depth from 3
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two ways to do that. You can edit this value locally and globally too.
Local setting (“Local value“) in your own PHP file:
Global setting (“Master value“) in
php.ini:php.inifile.phpinfo(), you can get to know where it is from “Loaded Configuration File” directive.php --ini | findstr /C:"Loaded Configuration File"php --ini | grep 'Loaded Configuration File'php_ini_loaded_file():<?php echo php_ini_loaded_file(); ?>php.iniin a text editor file.You have to put something like the following to this file (in this example, I’m using
php_xdebug-2.2.3-5.3-vc9-nts.dll(use http://xdebug.org/wizard.php to get to know which version you need)), and of course, you need to substitute<path to your XDebug>to the appropriate path:Simple as that… you can check the results in phpinfo’s xdebug part in a table: there will be a “Local value” and a “Master value” column.
Here’s a sample screenshot from my localhost server; in this example, the global configuration is
3, but I set the local value to10, with the above mentionedini_set():