Depending on which IDE or compiler/linker combination the process to create debug information to ensure that you have symbols, filenames and line numbers is different.
This section shows you what to do to ensure you have symbols for your compiler and linker.