eclipse-theia/theia

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

开放

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

 (4 条评论) (0 个反应) (0 位负责人)TypeScript (2,478 个派生)batch import
bugdebughelp wanted

仓库指标

星标
 (18,676 个星标)
PR 合并指标
 (平均合并 15天 4小时) (30 天内合并 75 个 PR)

描述

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

贡献者指南