Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show both internal terminal and debug console in vscode?

I need to debug a program on a server and would like to still have its output in GDB. The following "works" in general:

  • manual started (terminal) task that opens a ssh connection, does the necessary pre-setup (server-side scripts), then runs gdbserver --multi :12345
  • GDB debug configuration that runs in attach mode and executes the appropriate command chain "set sysroot remote:", "target extended-remote myserver:12345", "set remote exec-file /path/to/myfile", "run"

I know see the program running and stopping on the breakpoint, see the program's output in the integrated terminal and can toggle to the debugging console. But how can I see both the debugging console and the integrated terminal at once?
If somehow possible I'd like to not use an external window for one of those, as there are multiple vscode instances open - each connecting to a different server - and multiple windows "mgically" belonging to each other would make debugging harder together - the integrated option solves this problem completely.

like image 395
Simon Sobisch Avatar asked Sep 05 '25 03:09

Simon Sobisch


1 Answers

The Views and Panels (Problems - Terminal - Output - Debug console) can be moved.

Click on the header/Tab of the View/Panel and drag the mouse to the new location.

The mouse pointer will change if it is possible to drop it.

You can restore a panel/view to the original location from the context menu on the top-bar.

I have looked in the doc but could not find any mentioning of this. It was mentioned in one of the Release notes.

like image 53
rioV8 Avatar answered Sep 07 '25 23:09

rioV8