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

No way to copy full value from debugger console (repl) #187784

Open
zardoy opened this issue Jul 13, 2023 · 5 comments
Open

No way to copy full value from debugger console (repl) #187784

zardoy opened this issue Jul 13, 2023 · 5 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Milestone

Comments

@zardoy
Copy link
Contributor

zardoy commented Jul 13, 2023

Does this issue occur when all extensions are disabled?: Yes

It seems I was wrong in #187776 and the only way to copy values for now is clicking copy value from Variables view. Clicking Copy in debug console results in copying truncated version of big object or array. Behavior should be the same as in variables view.

image

@roblourens
Copy link
Member

Is this js-debug or in core @connor4312?

@roblourens roblourens added the info-needed Issue requires more information from poster label Jul 13, 2023
@connor4312
Copy link
Member

This would be in core. I think the copy is just the default thing we get with the tree view, but if not it should still re-evaluate the expression in the clipboard context like it does for Copy in the Variables view.

@zardoy btw, for JS you can run copy(<expression>) in the REPL to get the value in your clipboard.

@connor4312 connor4312 added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues and removed info-needed Issue requires more information from poster labels Jul 13, 2023
@connor4312 connor4312 self-assigned this Jul 13, 2023
@zardoy
Copy link
Contributor Author

zardoy commented Jul 13, 2023

@zardoy btw, for JS you can run copy(<expression>) in the REPL to get the value in your clipboard.

Thanks! I didn't know it. Is there a full list of command line APIs like copy?

@connor4312
Copy link
Member

I think we actually need a new DAP method to do this completely. If an element is in the console as a result of the user evaluating an expression, we can re-evaluate it (as in the PR I just made.) However, if an expression is just printed to the console otherwise (e.g. with console.log) we have no way to request the DA return a clipboard representation of that variable/value.

connor4312 added a commit that referenced this issue Jul 14, 2023
For #187784. Needs DAP methods for a complete solution.
@connor4312 connor4312 added feature-request Request for new features or functionality and removed bug Issue identified by VS Code Team member as probable bug labels Jul 14, 2023
@connor4312 connor4312 added this to the Backlog milestone Jul 14, 2023
connor4312 added a commit that referenced this issue Jul 14, 2023
For #187784. Needs DAP methods for a complete solution.
@ivnnv

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants