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: Copy all in debug console as plain text #28094

Closed
zhaihm opened this issue Jun 6, 2017 · 12 comments
Closed

Feature: Copy all in debug console as plain text #28094

zhaihm opened this issue Jun 6, 2017 · 12 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Milestone

Comments

@zhaihm
Copy link

zhaihm commented Jun 6, 2017

In debug console, can we add a "Copy All (Unformatted)" or "Copy All (Plain text)" function to the right button menu?
When I copy/paste the log into text editor (like Notepad++), there are characters that editor can't display. It would be a lot easier to analyze the log if we can just copy the log as plain text.

@isidorn

@isidorn isidorn added the feature-request Request for new features or functionality label Jun 6, 2017
@isidorn
Copy link
Contributor

isidorn commented Jun 6, 2017

Thanks @zhaihm for openning a seperate feature request, pushing this to the backlog for now. Let's see if more users ask for this feature

@isidorn isidorn added this to the Backlog milestone Jun 6, 2017
@isidorn isidorn removed their assignment Jun 6, 2017
@Arlen22
Copy link

Arlen22 commented Jun 7, 2017

Please add some way to copy the debug console text!!!

@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Nov 13, 2017
@weinand
Copy link
Contributor

weinand commented Nov 13, 2017

@Arlen22 copy the debug console text is already possible.

@weinand
Copy link
Contributor

weinand commented Nov 13, 2017

@isidorn I suggest that "Copy" and "Copy All" always copy plain text.
There is no need to have two sets of actions.

So this issue should just ensure that the existing "Copy" and "Copy All" actions copy plain text.
There is no need for a new feature.

@isidorn isidorn self-assigned this Nov 13, 2017
@isidorn isidorn modified the milestones: Backlog, On Deck Nov 13, 2017
@isidorn
Copy link
Contributor

isidorn commented May 11, 2018

@zhaihm what are the exect characters that can not be displayed in notepad++
Can you provide an example character that the debug console displays and notepad++ can not display?
@rebornix do we already have some utilities to strip strings of non plain text characters?

@letmaik
Copy link
Member

letmaik commented Oct 21, 2018

@weinand I just tried to copy from the debug console but wasn't able to. The Copy command only copies from the active source file, not the debug console. And since it is not possible to manually select all text by scrolling up and down etc. there is no easy way to copy all text currently. It should really behave more like the terminal renderers.

@rebornix
Copy link
Member

@isidorn we don't strip characters in the editor, the moment the content is being loaded into the editor, it's being decoded and then encoded in UTF16 (JavaScript string) so it's possible that some of the characters are decoded inproperly (but you can turn on render control characters to force them to be displayed) but copy and paste simply works on the text model which is the JavaScript string.

@chillmanstr8
Copy link

I am just getting started in VS Code and in the Debug Output window, I can't seem to copy anything. I've highlighted what I want, done CTRL-C/right-click -> Copy .. but neither work. I can't paste anything to notepad or notepad++. This is both before and after the debug session is completed. I hate resorting to screenshots.

@weinand
Copy link
Contributor

weinand commented Sep 9, 2020

@chillmanstr8 with "Debug Output window" you mean the Debug Console?

2020-09-09_10-08-25

@isidorn
Copy link
Contributor

isidorn commented Sep 22, 2020

We already strip the ansi characters before writing the content to the clipboard.
Can somebody please provide an example where the content of the debug console can not be copied?
Since in VS Code we do not treat any "special characters" in a special way I do not see a reason why Debug Console should do this.

@letmaik you can context menu -> copy all
@chillmanstr8 this works for me. Are you sure you have selected something? And not just hovered over it

@robross0606
Copy link

The problem I see is that copying large chunks of text (such as JSON) from the debug console often abbreviates the content with ...:

              {
                  "id": "study-activities-DZV5UZj_st:kWRXhFXdBMz",
                  "_internalId": "study-activities-DZV5UZj_st/9vM6YnryRGK",
                  "revision": "_cueo1zu-_w",
                  "__typename": "StudyActivity",
                  "objectId": "1.0_16021989345131929211696",
                  "subType": "TERM",
                  "requirementLevel": "MANDATORY",
                  "recommendationLevel": null,
      …Id": "planned-activities-DZV5UZj_st/IzlM1FiVPYO",
                          "revision": "_cueo6C6-CM",
                          "__typename": "PlannedActivity",
                          "paType": "StudyEvent",
                          "name": "Colon symptoms",
                          "objectId": "1.0_1602335389670-1118984514",
                          "effectiveState": "UNCHECKED",
                          "studyActivity": {
                            "id": "study-activities-DZV5UZj_st:-qJOqCCTY2HY",
                            "name": "Colon symptoms"
                          },
                          "children": []
                        },

It is infuriating.

@isidorn
Copy link
Contributor

isidorn commented Aug 13, 2021

No action planned on the above discussion. Thus closing.
If there are clear steps feel free to open a new issue

@isidorn isidorn closed this as completed Aug 13, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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

9 participants