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.