Eclipse find source file from library

1.5k views Asked by At

For debugging it is often helpful to read the library's source code. When pointing at a library function which I want to inspect and opening the context menu and click on 'Open Declaration' in my own written code I will just have a look at the corresponding header file.

How do I show the corresponding source/cpp file in Eclipse? If I just search for the file in the source folders (using OS tools) I can't use Eclipse methods like 'Open call hierarchy', so, that won't be a satisfying solution. Thanks.

1

There are 1 answers

2
E-Riz On BEST ANSWER

You can tell the debugger where to find source files. In the Run or Debug Configurations dialog, there is a Source tab when you select a particular configuration. That's where you can specify so-called Source Containers. For more details, see the Eclipse CDT help page.