Using Eclipse with CDT for C++ development on Windows. Sometime Eclipse couldn’t find the Source during debugging because of the missing mapping to the (cygwin-) drive if the workspaces is residing in root other than CYGWIN.
To resolve the mapping, If Projects are under C:\Projects, so add mapping in Eclipse as:
/cygdrive/C --> C:/
To add above mapping, Open Eclipse and go to
- Windows -> Preferences -> C/C++ -> Debug -> Source Lookup Path
- Add a new Path Mapping:
Add -> Path Mapping -> OK - Change Name of Mapping and set “Compilation path” to “/cygdrive/C” and “Local file system path” tho “C:\” (without the quotes)