开发者

Debugging C++ in Eclipse with files with same name

In my source tree, I have some files with dupli开发者_C百科cate names. Not really a problem since they are isolated per platform, i.e. "FileReader.cpp" exists in android/ and linux/ but when building for linux, the android/ directory is never touched.

Now, when debugging within Eclipse (on Linux) Eclipse opens up the wrong file! Not quite sure how, since it seems that GDB is sending the full pathname.

Any ideas ? I know I can get around this by renaming the file, but I'd rather not.


You probably worked this out by now :)

The correct answer is here http://www.eclipse.org/forums/index.php/m/636687/:

In your Debug Launch Configuration in the Source tab you should remove the Default source lookup path. And then add Absolute path. This will ensure that Eclipse use absolut filenames to set breakpoints.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜