Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse remote debug cannot connect to X server(Eclipse remote debug cannot connect to X server)
Eclipse remote debug cannot connect to X server [message #1233668] Mon, 20 January 2014 08:33
katu txakur is currently offline katu txakurFriend
Messages: 1
Registered: January 2014
Junior Member
I'm remote debugging a qt application from one ubuntu machine to another ubuntu one. I can do it from the console with:

root@eclipsePC# sudo ssh apppcIP -X
root@appPC# export DISPLAY=:0.0
root@appPC# gdb myApplication

Now I'm trying to do the same with Eclipse cdt (starting eclipse with sudo). I've defined the remote connection as a Linux type system. It works for application with no graphics, but for my qt application I get:

Listening on port 2345 Remote debugging from host "myEclipseIP"

myApp: cannot connect to X server

Child exited with status 1

GDBserver exiting logout

I've tried doing

root@appPC# xhost +
root@appPC# export DISPLAY=:ECLIPSEPCIP:0.0

but it didn't work. Anyone knows how to do this? Thanks

I've added the argument -display ECLIPSEPCIP:0.0 in the debug config and now it starts, but in the appPC instead of the host ECLIPSEPC.
Previous Topic:CDT not recognizing IN and OUT keywords
Next Topic:Inspecting STL containers with GDB pretty print
Goto Forum:

Current Time: Mon May 21 19:06:24 GMT 2018

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

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

Back to the top