This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to use breakpoints inside a function that is linked as a library

Hi Sai,

1、It is a compile time failure.  I will reply to my customer. Thank you for your help.

2、There is another problem I met. When using driver function of MSP432, the project calls a compiled driverlib directly. Please tell me how can I break points in GPIO_setConfig() or make my changes in GPIO_setConfig() work?

Thank you.

Eason

  • Hello Zhou,

    To place breakpoints inside a function, that is part of a library, you need to do the following:
    * Add the .c file, inside which the function resides, to you project - preferably copy the file and place it in your project's folder.
    * Build the project and place breakpoints.

    The functions in the files that are part of your project have higher preference than the functions inside a linked library.

    You can make any edits to the file added to the project and debug it. Once all changes are final, you can build this file as part of the library and remove from the project.

    Hope this helps!

    Thanks,
    Sai
  • Hi Sai,

    It really helps.

    Thank you.
    Eason

**Attention** This is a public forum