Vscode-php-debug: Not able to see all elements (level 1) of an array

Created on 23 May 2017  路  3Comments  路  Source: xdebug/vscode-php-debug

PHP version: 7.1.5
XDebug version: v2.5.1
Adapter version: 0.2.0

Your launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for XDebug",
            "type": "php",
            "request": "launch",
            "port": 9000,
            "serverSourceRoot": "/vagrant",
            "localSourceRoot": "${workspaceRoot}"
        }
    ]
}

XDebug php.ini config:

zend_extension=xdebug.so
xdebug.var_display_max_depth = 16
xdebug.cli_color = 2
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_host = 10.0.2.2

XDebug logfile (from setting xdebug.remote_log in php.ini): None
Adapter logfile (from setting "log": true in launch.json): None

Code snippet to reproduce: No idea

When I break into some code, vscode tells me a var $order is an array containing 58 elements, but I don't see them all:

capture d ecran 2017-05-23 a 10 38 07
capture d ecran 2017-05-23 a 10 38 20

Most helpful comment

Thanks, it works. But maybe we can increase the default sent to xdebug ? Like the default value in display
IE:

"xdebugSettings": {
    "max_children": 128,
    "max_data": 512,
    "max_depth": 3
}

All 3 comments

See xdebugSettings in the readme. This is entirely controlled through XDebug configuration.

Thanks, it works. But maybe we can increase the default sent to xdebug ? Like the default value in display
IE:

"xdebugSettings": {
    "max_children": 128,
    "max_data": 512,
    "max_depth": 3
}

The default value is determined by XDebug. On slow machines a higher max_children causes a lot of lag, which is why I don't want to change it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eghoff1 picture eghoff1  路  10Comments

camrongodbout picture camrongodbout  路  5Comments

leslieeilsel picture leslieeilsel  路  7Comments

lirondu picture lirondu  路  11Comments

jmo161 picture jmo161  路  4Comments