Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:51 Go to next message
kaleem beg is currently offline kaleem begFriend
Messages: 2
Registered: March 2018
Junior Member
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 14:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
I would suggest using the CDT forum for questions about C/C++ support: https://www.eclipse.org/forums/eclipse.tools.cdt

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:problem setting up debugger
Next Topic:Unable to debug C++ app on remote docker container, using gdb
Goto Forum:
  


Current Time: Fri Apr 26 21:25:24 GMT 2024

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

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

Back to the top