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:


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.
Most helpful comment
Thanks, it works. But maybe we can increase the default sent to xdebug ? Like the default value in display
IE: