You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
Copying variables of compound types (ie arrays and objects) from the variables panel is not possible. When right-clicking on such a variable, we can not Copy value nor Copy expression.
For an array, copying as value gives 'array(n)', whereas the return value of print_r, var_export or json_encode would be useful to then paste it in a script.
For objects, copying as value gives the variable class name, whereas the return value of print_r, var_export or json_encode would be useful to then paste it in a script.
Solution:
As written in microsoft/vscode#27950 (comment), advanced copy variable values is now supported in VSCode. And it's up to the debugger to implement it in order to add the ability of advanced copy variable values.
PHP version: 7.2.32
XDebug version: 2.9.6
Adapter version: 1.13.0
Problem:
Copying variables of compound types (ie arrays and objects) from the variables panel is not possible. When right-clicking on such a variable, we can not Copy value nor Copy expression.
For an array, copying as value gives 'array(n)', whereas the return value of print_r, var_export or json_encode would be useful to then paste it in a script.
For objects, copying as value gives the variable class name, whereas the return value of print_r, var_export or json_encode would be useful to then paste it in a script.
Solution:
As written in microsoft/vscode#27950 (comment), advanced copy variable values is now supported in VSCode. And it's up to the debugger to implement it in order to add the ability of advanced copy variable values.
Relates to:
The text was updated successfully, but these errors were encountered: