eclipse-theia/theia

[debug console] Copying all debug console text only copies text in view

Open

#6,093 创建于 2019年9月3日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)TypeScript (18,676 star) (2,478 fork)batch import
bugdebughelp wanted

描述

Description

When copying all text in the debug console, only a partial copy is made to the clipboard. It seems this is only copying the text in view.

Reproduction Steps

Create a noddy program with lots of output, e.g.:

var x = 30;
for (var i = 0; i < x; i ++) {
    console.log("message " + i);
}

Debug this program and select all in the debug console output.

Use the context menu to copy the selection and paste it somewhere.

Observe the pasted output is truncated. e.g. copying when scrolled to the top produces:

/Users/thegecko/.nvm/versions/node/v10.16.0/bin/node --inspect-brk=45088 debug/test.js 
Debugger listening on ws://127.0.0.1:45088/6ba792fd-2c84-4ecb-ba4c-e9b9dcd76faa
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
message 0
message 1
message 2
message 3
message 4
message 5
message 6
message 7
message 8
message 9
message 10

And when scrolled to the bottom produces:

message 15
message 16
message 17
message 18
message 19
message 20
message 21
message 22
message 23
message 24
message 25
message 26
message 27
message 28
message 29

OS and Theia version: Theia 0.10.0

贡献者指南