This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Source code level debugging doesn't work

Hi,

I want to proced source code level debugging with my own library (*.libc file). It doesn't work when library project and aplication project are placed together into workspace. There are no problem when I open standalone aplication project. What is the problem? Any suggestion?

Best regards,
JN

Parents
  • Jan;
    When you build your project with debugging enabled, the tools place symbols in the the axf or object files. These symbols link the axf code to the source code for viewing at the source level.
    When you build your final hex files or Lib files, these symbols are excluded from your code so there are no reference links back to your source code. I know of no way to include this symbol linkage in your Lib files.
    Bradford

Reply
  • Jan;
    When you build your project with debugging enabled, the tools place symbols in the the axf or object files. These symbols link the axf code to the source code for viewing at the source level.
    When you build your final hex files or Lib files, these symbols are excluded from your code so there are no reference links back to your source code. I know of no way to include this symbol linkage in your Lib files.
    Bradford

Children
  • Did you build your library with debug information included?

    Maybe I don't fully understand your problem, but I have no problem building a library with Debug information included in the library and then separately build a project that just links to the library yet still have the full capability to source level debug the application AND the library. (You may to actually add the library source code to the project so it knows where it is, but you do not build the library source code in the project. You may need to de-select the included in Target Build option under properties so that it is not rebuilt)