Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add advanced copy variable values #431

Open
bborrel opened this issue Dec 16, 2020 · 1 comment · May be fixed by #917
Open

Feature request: add advanced copy variable values #431

bborrel opened this issue Dec 16, 2020 · 1 comment · May be fixed by #917
Labels

Comments

@bborrel
Copy link

bborrel commented Dec 16, 2020

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:

@zobo zobo added the feature label Apr 30, 2021
@zobo zobo linked a pull request Jul 22, 2023 that will close this issue
@zobo
Copy link
Contributor

zobo commented Jul 23, 2023

Will currently be implemented as var_export.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants