Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6884185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:28:33+00:00 2026-05-27T05:28:33+00:00

I recently installed xdebug on my ststem and wanted to increase xdebug.var_display_max_depth from 3

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:28:34+00:00Added an answer on May 27, 2026 at 5:28 am

    There are two ways to do that. You can edit this value locally and globally too.

    1. Local setting (“Local value“) in your own PHP file:

      <?php  
          ini_set('xdebug.var_display_max_depth', '10');    
          // here comes your code...  
      ?>
      
    2. Global setting (“Master value“) in php.ini:

      1. First locate your php.ini file.

        • In phpinfo(), you can get to know where it is from “Loaded Configuration File” directive.
        • You can also locate it using command prompt/terminal:
          • Windows: php --ini | findstr /C:"Loaded Configuration File"
          • Linux/UNIX-like: php --ini | grep 'Loaded Configuration File'
        • using php_ini_loaded_file(): <?php echo php_ini_loaded_file(); ?>

    3. Open your php.ini in a text editor file.
    4. 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:

      [Xdebug]  
      ;; <path to your XDebug> is like
      ;; C:\Program Files (x86)\PHP\v5.3\ext in Windows
      ;; (should be e.g. in PHP directory's "ext" subdir)
      ;; [backslash UNDER WINDOWS, / under UNIX-like operating systems]  
      zend_extension = "<path to your XDebug>\php_xdebug-2.2.3-5.3-vc9-nts.dll"  
      
      ;; HERE comes the answer to your question, we set the mentioned variable to 10  
      xdebug.var_display_max_depth = 10
      

    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 to 10, with the above mentioned ini_set():

    Xdebug - var_display_max_depth (Local value/Master value)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently upgraded to Ubuntu 10.04 and as usual installed xdebug from the
I recently installed jruby on a machine that also has ruby installed on it.
I recently installed (from the binary installers) GHC 6.12 and the Haskell Platform 2010.1.0.1
I recently installed Checkstyle plugin for Eclipse and personally think that it is awesome.
I recently installed the ASP.NET MVC 4 Developer Preview (which Microsoft says can be
I recently installed Eclipse 3.7 (Indigo) and now a wanted to start a new
I recently installed a 64bit OS on my computer, I thought that sizeof(char*) would
I recently installed ADT 16, which is now highlighting a problem that I have
I've recently installed IE 8 and can't seem to get the jquery $(document).ready event
I recently installed mysql server and client, but I can't connect to the server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.