-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Multi page selection in debug console #2163
Comments
Until you can select more than one page, could you maybe implement #3974 so at least the whole output could be copied at once, directly? I am also often in the position that I ask people to send me their logs and they cannot... |
I believe this is fixed now in 1.8+ and can be closed out 👍 @roblourens |
@MarkPieszak no, it is not fixed unfortunetly 🐝 |
Oh strange maybe I was in another tab sorry! Apologies :( |
Did this commit just add a "copy" item to the right click context menu? If so, that button still has this same issue. Seems to function the same as cmd/ctrl + c. If it's not feasible or easy to add a way to copy all selected text instead of only what's in the window, a "copy all" button would suffice and I can get the snippet I need in another window. But having to copy / paste in fragments is a terrible UX. |
A hack of this would be redirect output to a file, what I did was to add ">" and then a filename like "output.txt" to "launch.json" in the "args" field. Works fine for now. |
Is "selecting and copying a region of text" really so novel or difficult to figure out? I can swear I've seen such a thing in another app once. |
@benjamin21st mind adding a quick snippet so we can see this formatting? This sounds very useful. Will it overwrite each time we run the debugger, or always add to the file? |
@JacobJT Just like in command line you can do something like: |
I have investigated today for the things needed in order to make this work:
An alternative approach is to determine on what element in the model the selection started and where it ended and to copy the content between these elements. However the issue here is that the selection will not in some cases match what is being copied. Another alternative approach is to use the editor for the debug console implementaion which is captured here #11462 Since the ideas above require quite an effort and would introduce additional issues for now we have chosen a pragmatic solution already suggested by @felixfbecker and have added a context menu action to simply copy all the output. So keeping this issue open as a feature request to be able to do more fine grained multi page copying but pushing it to backlog as I believe this workaround will help with most scenarios. |
Can we add a "Copy All (Unformatted)" or "Copy All (Plain text)" function to the menu? |
@zhaihm please open a new issue / feature request for this and ping me on it. Thanks |
@smarigowda that is the variables panel, not the debug console |
thank you. I can see it in debug console. Impressed with your lightning fast reply 👍 |
This issue also applies to less-than-multipage selections in my opinion. Select a single character in the Debug Console, scroll the Debug Console up or down just far enough that the selection disappears, then scroll back to the original scroll position - the selection is gone. |
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding, and happy coding! |
Unfortunately I don't think this is practical with the virtualized debug console as it currently works. I think the "Copy All" context menu option which now exists is the best option. |
I assume the console view is virtualized and so I can't copy a large amount of output at once. This is useful when debugging the Chrome adapter since it has a setting to write tons of logs into the console.
The text was updated successfully, but these errors were encountered: