Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Unable to debug C++ app on remote docker container, using gdb(Unable to debug C++ app on remote docker container, using gdb)
Unable to debug C++ app on remote docker container, using gdb [message #1783474] Tue, 13 March 2018 09:51 Go to next message
Eclipse UserFriend
Sceanrio
Trying to debug C++ app remotely from Ubuntu 16.04 in Eclipse oxygen, compiled for x86_64 target, on a remote docker container that has a gdb server (also compiled for x86_64 target).
Running in priviliged mode.
The debug fails with an error message:

Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:32793
Error message from debugger back end:
localhost:32793: Connection timed out.
localhost:32793: Connection timed out.

////////////////////////////////////////////////////////////////////////////////
the debug configuration snapshot is attached.

The scenario works when running the docker container on the same Ubuntu machine instead of on the remote machine.

In the eclipse docker view, I have added a docker connection for the remote machine and can see all the dockers/container on the remote machine, and also able to start/stop containers remotely.

I am accessing the Docker daemon remotely by enabling the tcp Socket.


Re: Unable to debug C++ app on remote docker container, using gdb [message #1783487 is a reply to message #1783474] Tue, 13 March 2018 10:50 Go to previous message
Eclipse UserFriend
I would suggest using the CDT forum for questions about C/C++ support: https://www.eclipse.org/forums/eclipse.tools.cdt
Previous Topic:problem setting up debugger
Next Topic:Unable to debug C++ app on remote docker container, using gdb
Goto Forum:
  


Current Time: Mon Jul 14 12:42:37 EDT 2025

Powered by FUDForum. Page generated in 0.07343 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top