Source not found problem when debugging with eclipse+CDT+cygwin

Find out the reason, it's the gdb that makes the ghost, cygwin's new version of gdb (200607),

1. Enter Eclipse and select [Window] - [Preferences].

2、选择【C/C++】-【Debug】-【Common Source Lookup Source】。

3. Click [Add...] on the right and select [Path Mapping]. Then click the Path Mapping just added, [Edit...], then [Add...],

Fill in /cygdrive/c in Compilation path, and fill in c:/ in Local file system path;

Fill in /cygdrive/d in Compilation path and d:/ in Local file system path;

Fill in /cygdrive/e in Compilation path and e:/ in Local file system path;

……

The above mappings are added and added depending on the situation, depending on where your workspace is!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325849526&siteId=291194637