title: How to debug a linux C++ program from Windows with Eclipse?
body: <p>I use a headless (i.e. no screen) remote ubuntu server x64 for developping a C++ application (with no UI either).</p>
  
  <p>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.</p>
  
  <p>So far I have heard of two solutions :</p>
  
  <ol>
  <li>Remote gdb</li>
  <li>Remote X server</li>
  </ol>
  
  <p>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)</p>
  
  <p>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.</p>
  
  <p>When googling for those problems, I only find outdated pages or different problems.</p>
  
  <p>Did anyone do it ? Can you share advices or fresh pointers on how to remote debug a C++ linux app from Windows ?</p>