question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Array children inspection limited to 32 child elements

See original GitHub issue

When inspecting an array you are unable to see the total number of child elements if it exceeds 32. (As is often the case in drupals render arrays).

I have checked my xdebug settings and the xdebug.var_display_max_children=128 but im happy to look anywhere else you’d like to confirm proper setup as well.

Test code I confirmed it with:

<?php
$test = array();
for($i=0;$i<100;$i++) {
  $test[] = $i;
}
count($test);

Actual result: array inspector shows 32 children Expected result: Should show all 100

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
joontycommented, Mar 7, 2013

Completely understood! Sorry for the misunderstanding. Don’t worry about bringing a support question - where else are you going to be able to get support for Vdebug anyway? 😛

You’ve raised a point actually - I think I need to add something to check whether the g:vdebug_features dictionary has already been initialized, so you can use:

let g:vdebug_features = { 'max_children': 128 }

At the moment that won’t work if Vdebug gets loaded afterwards, as the dictionary will get overwritten. I’ll make that the focus of this issue.

Cheers

0reactions
paprykarzcommented, Jan 28, 2014

This particular example of array truncating is worth adding to FAQ - it may save time someone. I just spent 20 minutes trying to find $_SERVER['REQUEST_URI'].

My english is too poor to add my own patch 😉.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Element.children - Web APIs - MDN Web Docs
The read-only children property returns a live HTMLCollection which contains all of the child elements of the element upon which it was ...
Read more >
Putting the children of a section into an array - Stack Overflow
1 Answer 1 ; // Create the array of objects let ; // array to hold the elements // Get the images(elements) ;...
Read more >
AFI34-144 - Air Force - AF.mil
Implements policy on direct cash subsidies to DoD designated child care providers to expand the availability of child care spaces and meet ...
Read more >
Scope of Attention, Control of Attention, and Intelligence in ...
Estimates of adults' and children's working memory capacity for items in visual arrays of different set sizes (x axis), based on the capacity...
Read more >
Child care licensing handbook : facility-based programs
The following items must be posted in a clearly visible and prominent place: the licence (including probationary licence), inspection reports, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found