code-debug icon indicating copy to clipboard operation
code-debug copied to clipboard

move extension logging/messages from debugging pane to output pane

Open GitMensch opened this issue 3 years ago • 2 comments

I suggest to move any logging output from the debug pane to a separate (new) output pane "native-debug"; benefits:

  • when "printCalls" and/or "showDevDebugOutput" (or log output) is active: much more easy to separate the GDB/application output and the logging (it currently tends to get a bit confusing)
  • still can be shown "in parallel" (next to the debug pane)
  • would preserve the entries also when debugging ended, which can be useful for bug reports (and also for "just check").

I volunteer to do that, mainly waiting for a go/assignment by @WebFreak001

GitMensch avatar Mar 04 '22 16:03 GitMensch

While it is possible to import vscode - using it breaks the backend. When this is done we could easily use an output pane via:

import { OutputChannel,  window } from "vscode";
const LogOutputChannel: OutputChannel = window.createOutputChannel("code-debug");

LogOutputChannel.appendLine(msg);

GitMensch avatar Mar 07 '22 14:03 GitMensch

Actually a follow-up to #217.

GitMensch avatar Mar 07 '22 20:03 GitMensch