I use a headless (i.e. no screen) remote ubuntu server x64 for developping a C++ application (with no UI either).
I want to conveniently (IDE like, not command line) debug this program from windows (7/64), with Eclipse if possible. I have a windows share between the two and full root access on both machines.
So far I have heard of two solutions :
- Remote gdb
- Remote X server
I have worked on solution 1 : built a cross gdb, copied my program and libs on windows. I’m able to remote-gdb from cygwin command line, but not from eclipse (stuck at “launching… 85%” with no error message nor log)
I have also worked on solution 2 : installed xauth, set X forwarding, installed xming on my windows, set DISPLAY on the linux box. But no effect “can’t open DISPLAY xxx” with no easy troubleshoot.
When googling for those problems, I only find outdated pages or different problems.
Did anyone do it ? Can you share advices or fresh pointers on how to remote debug a C++ linux app from Windows ?
I suggest to install an X11 server on your Windows machine (e.g. Xming perhaps?) and to do
ssh -Xwith some X11 client applications (likeemacs,dddif needed,xterm) on your Linux server. Don’t use a complex thing like Eclipse. You could just useemacs(remotely on the Linux server, displaying on the Windows desktop X11 server)…Once
emacsworks well (running on the remote Linux server, displaying on the Windows desktop X11 server), you can rungdbinside it.To get
ssh -Xworking, you need to configure it appropriately. Maybe you forgot that step. To test it, just usessh -X yourlinuxhost xterm, and work on configuration till that step works.Of course you could also install Linux on your laptop or desktop, perhaps inside a virtual machine above your Windows.
NB. I never used Windows, but I do know that some X11 servers exist for it.