GDB Remote Attach

已回答

Hi,

when using a remote toolchain and CMake configuration in Clion you can build and run/debug your program remotly.

With "debug" I mean just clicking the debug icon and it remotly executes and controls/parses(?) a gdb via ssh directly which in turn controls the actual program.

The gdb is the one you assigned in the toolchain.

 

Problem:

Now I have the problem that the program can not be started directly via gdb to be debuggable (Network stuff).

Only attaching(!) a gdb/gdbserver is possible.

It is possible to set up a remote gdbserver attachment startup script and configuration in Clion however connecting and transmitting the debug libraries and stuff is extremly(!!!) slow (big program bad connection) and also crashes at the end.

Thus I would like the direct gdb via ssh debugging option from up top but with a process id attachment option.

Is that possible? What are my options here?

0

请先登录再写评论。