[xdebug-general] Re: arrays in local context limited to 31 elems?

From: Mike D'Ambrogia <miked[@]jamagination.com>
Date: Wed, 24 Oct 2007 11:47:05 -0700

<log file sent to Derick offline>

I used debugclient-0.9.0.exe in order to reproduce the problem in a
known environment.

Added some new code to the sample code to make this simplier:

<?
$myArray = array();
for ($x=0;$x<200;$x++) {
        $myArray[] = 'node' . $x;
        if ($x > 35) {
                echo "place a breakpoint here, x=" . $x . "<BR>";
        }
}
?>

Dbgp cmds:

Tried this one first, but wasn't exactly sure what the 'feature_set' cmd
was trying to accomplish -it seems to be generated by the notepad++
xdebug plugin by default

source -i 1 -f file:///home/miked/htdocs/array_test.php
feature_set -i 2 -n max_depth -v 30
breakpoint_set -i 3 -t line -f file:///home/miked/htdocs/array_test.php
-n 6 run -i 4 context_get -i 5 -c 0

So thinned it down removing the 'feature_set' to this which is shown in
the log file results attached

source -i 1 -f file:///home/miked/htdocs/array_test.php
breakpoint_set -i 2 -t line -f file:///home/miked/htdocs/array_test.php
-n 6 run -i 3 context_get -i 4 -c 0

My xdebug config settings for php.ini

        # xdebug config
        php_value xdebug.remote_enable 1
        php_value xdebug.remote_handler dbgp
        php_value xdebug.remote_mode req
        php_value xdebug.remote_host 192.168.152.70
        php_value xdebug.profiler_enable 0
        php_value xdebug.profiler_output_dir /home/miked/var/log
        php_value xdebug.var_display_max_children 2048
        php_value xdebug.var_display_max_data 2048
        php_value xdebug.var_display_max_depth 20

Phpinfo() output for xdebug:

xdebug
xdebug support enabled
Version 2.0.0

Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.125 $
GDB - GNU Debugger protocol $Revision: 1.87 $
PHP3 - PHP 3 Debugger protocol $Revision: 1.22 $

Directive Local Value Master Value
xdebug.auto_trace Off Off
xdebug.collect_includes On On
xdebug.collect_params 0 0
xdebug.collect_return Off Off
xdebug.collect_vars Off Off
xdebug.default_enable On On
xdebug.dump.COOKIE no value no value
xdebug.dump.ENV no value no value
xdebug.dump.FILES no value no value
xdebug.dump.GET no value no value
xdebug.dump.POST no value no value
xdebug.dump.REQUEST no value no value
xdebug.dump.SERVER no value no value
xdebug.dump.SESSION no value no value
xdebug.dump_globals On On
xdebug.dump_once On On
xdebug.dump_undefined Off Off
xdebug.extended_info On On
xdebug.idekey miked no value
xdebug.manual_url http://www.php.net http://www.php.net
xdebug.max_nesting_level 100 100
xdebug.profiler_aggregate Off Off
xdebug.profiler_append Off Off
xdebug.profiler_enable Off Off
xdebug.profiler_enable_trigger Off Off
xdebug.profiler_output_dir /home/miked/var/log /tmp
xdebug.profiler_output_name cachegrind.out.%p
cachegrind.out.%p
xdebug.remote_autostart Off Off
xdebug.remote_enable On Off
xdebug.remote_handler dbgp dbgp
xdebug.remote_host 192.168.152.70 localhost
xdebug.remote_log no value no value
xdebug.remote_mode req req
xdebug.remote_port 9000 9000
xdebug.show_exception_trace Off Off
xdebug.show_local_vars Off Off
xdebug.show_mem_delta Off Off
xdebug.trace_format 0 0
xdebug.trace_options 0 0
xdebug.trace_output_dir /tmp /tmp
xdebug.trace_output_name trace.%c trace.%c
xdebug.var_display_max_children 2048 128
xdebug.var_display_max_data 2048 512
xdebug.var_display_max_depth 20 3

I'm assuming that its something stupid that I'm doing but not sure what

Mike

-----Original Message-----
From: xdebug-general-bounce[@]lists.xdebug.org
[mailto:xdebug-general-bounce[@]lists.xdebug.org] On Behalf Of Derick
Rethans
Sent: Wednesday, October 24, 2007 10:58 AM
To: Mike D'Ambrogia
Cc: xdebug-general[@]lists.xdebug.org
Subject: [xdebug-general] Re: arrays in local context limited to 31
elems?

On Wed, 24 Oct 2007, Mike D'Ambrogia wrote:

> searched the doc on the site and the email list archives for info on
> this without success
>
> remote debugging on apache server
>
> As the array builds while stepping thru the code I see a maximum of 31
> nodes in the local context pane for the array even if more than 31
> exist

Perhaps it's a client issue? Make a remote log to find out. You can find

information on how to do so here:
http://xdebug.org/support.php under "Remote Debugger Bugs".

> have set:
> xdebug.var_display_max_children 2048 xdebug.var_display_max_data 2048
> xdebug.var_display_max_depth 20
>
> overkill I know, but they have no effect on the number of nodes
> displayed for the array .

Did you verify that those settings where in effect? phpinfo() will be
able to tell you.

regards,
Derick

-- 
Like Xdebug? Send a postcard:
http://derickrethans.nl/xdebug_2_released.php
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Wed Oct 24 2007 - 20:48:15 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST