I've been debugging a PHP script on my local server using NetBeans and XDebug. Even with xdebug.show_local_vars = 1 set in php.ini Netbeans will only occasionally display local arrays in a function.
For example, in a minimal script like this:
<?php
test();
function test() {
$dow = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
$tod = ['AM', 'PM', 'EVE'];
$mat = ['', '', '', '', '', '', ''];
}
I can view $mat in Netbean's variables window but not the other two. Changing the array names makes no difference.
Any thoughts on why $mat shows up but not the others?
Variableswindowxdebug.show_local_vars=9but cannot remember why