Hello All,
I can successfully use remote debugging from within CodeBlocks. It works nice but now I have to copy the executable to the target outside C::B, and has to start the remote debugger also outside C::B. I want to automate these two tasks.
Therefore I want to use a bash script that runs every time I start a debug session. In the project/target options on the debugger tab there is an input field for Additional commands before connection. On the first sight it looks exactly like what i need, but on a second look it seems that this is made for gdb commands. It should be possible also to use the After connection gdb commands to copy the executable but then I still have to start the remote debugger by hand, and for starting the server I should already have the executable. Thus that would lead to a chicken and egg problem.
So I would prefer to just start a bash script. That script can copy the executable with scp , and then starts the remote debugger over ssh with public-key based authentication.
Any ideas? what is the most simple way to do this?
Thanks in advance.