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.

Question about Break porint

Dear,

I use CCS v3.3


in some project the Break Point can only be made at the entry of functions.

in another project, I can set the Break Point to anywhere in the c source.

I tried to find the different options between each project, but failed.

could you let me know the reason what makes effect on the Break Point

Thanks.

 

 

  • Take a look at the Build options. The project that does not allow break points probably has optimization turned on.

  • Optimization is one potential cause of this. Even with optimization off, however, the compiler may still make certain lines of code inaccessible for breakpoints. These are usually variable declarations and assignments; they do not have a corresponding instruction, so there's no way the debugger can set a breakpoint on them.