-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Copy json from variable WATCH #36704
Comments
There is a limit of 10000 characters on watchers. In the case of the JSON it would be neat of the limit could be configured. My objects are almost always longer than 10k characters. |
I wanna give this a shot but is there a way to test the debugger in incremental mode? The debugger for the OSS vscode only works when I use the |
@drdgvhbh please keep in mind that this feature request does not have a help wanted label, which means that we are not 100% sure we want this. As for running the debugger in incremantal vscode you can see it here #20623 (comment) Sorry for missing documentation on this. |
@drdgvhbh, @dbauszus-glx what exactly is the definition of "Copy JSON" for arbitrary languages, e.g. C++? The Debug Adapter Protocol (DAP) does not provide this functionality directly, so the (generic) implementation of this feature would have to live in the VS Code UI. It would use the existing primitive DAP requests to retrieve names and values of data structures and construct a JSON from them. I don't know how useful this JSON is for C++ developers... I suggest to implement this feature as an extension. |
@weinand I also had the same idea to be implemented by the extension but I thought the extensions can not access the clipboard. Currently it is not possible to contribute for watches and variables but simply because we did not enable this due to the lack of use case |
copy to clipboard: see https://stackoverflow.com/questions/7778539/copy-to-clipboard-in-node-js I've created feature request #36891 |
Copy value would do to keep the function language agnostic. At the moment it is not possible to copy values from anything but string and strings are limited at 10000 characters in the watcher. I am sure that there is a use case for copying values without the requirement to change the code itself, i.e. to use stringify just for the sake of access to the value during debug. |
This issue has been closed because it is not within the scope of the core product, but could be addressed by an extension. The VS Code Marketplace shows all existing extensions and you can get started writing your own extension in a few simple steps. See also our issue reporting guidelines. Happy Coding! |
It should be possible to copy variable values or json from a watched variable during debug. This is the one feature which makes me still need to use WebStorm where it is easily possible to copy JSON from the right click menu on a watched variable.
Where as in Visual Studio Code there is merely the option to add / remove / edit a variable watch.
Please log this as a feature request.
The text was updated successfully, but these errors were encountered: