title: Eclipse GDB can't find source files
body: <p>My workspaces are located in my home directory.</p>
  
  <p>I am currently trying to debug python code which loads a shared C++ library, using Eclipse Oxygen and PyDev. I can debug the Python files just fine.</p>
  
  <p>I run the program (pytest unit test if that matters) with a breakpoint somewhere in the test before the shared library is called (but after it is loaded) and then run a C/C++ Attach to Application debug and attach to the paused python thread. I then set a breakpoint in my C++ code and resume python, and get this from the GDB console output:</p>
  
  <blockquote>
    <p>No source file named /home/myname/.../models/sourcefile.cpp</p>
  </blockquote>
  
  <p>Doing an <code>ls /home/myname/.../models</code> clearly shows  that that file exists.</p>
  
  <p>I'm not sure if this matters but my library was compiled with CMake where the source and build directory are siblings. E.g. workspace is ~/dev and source is in ~/dev/sourceFolder and build files are in ~/dev/buildFolder</p>
  
  <p>Update:</p>
  
  <p>I was able to attach to the running Python debug thread manually in the console using <code>gdb python &lt;thread_number&gt;</code>. This works and finds my source files just fine, allowing me to debug manually in the console. It would still be much faster and less cumbersome if I were able to get it to work in Eclipse.</p>
  
  <p>Things I've tried in the C++ debug config settings:</p>
  
  <ul>
  <li>In preferences, changing C/C++ -> Debug -> Source Lookup to have
  absolute file path first, profile first, and relative file path
  first</li>
  <li>In CppDebug settings debugger tab, manually added build and source directory to shared libraries</li>
  <li>In CppDebug settings source tab, manually added source directory in source lookup path</li>
  </ul>
  
  <p>None of these seemed to do much.</p>