Closed MurzNN closed 2 years ago
Hi!
The maximum length to be transferred in a debug session is controlled by settings set within the debug session. The INI settings do not control this.
You need to set the max_data
in your launch,json
. See the xdebugSettings
section in the README.
I would like to have a special "details" window where I could fetch the whole data of a variable, but VSCode does not currently offer such a UI element.
Let me know if this does not solve your problem.
Best!
PHP version: 7.4.29 Xdebug version: v3.1.2 VS Code extension version: v1.27.0
Your launch.json: - Xdebug php.ini config:
Xdebug logfile (from setting
xdebug.log
in php.ini): - VS Code extension logfile (from setting"log": true
in launch.json): -Code snippet to reproduce:
strlen($string)
- you should receive 574.$string
- you will see the truncated value:You will see only the first 512 characters, instead of the full string value.
For XDebug there is a special setting, that can extend this limit to more than 512 characters: https://xdebug.org/docs/all_settings#var_display_max_data But even if I set it to higher values or use
-1
- it doesn't resolve the issue: