I’m unable to enter breakpoints in my code when using CCES. Why is this?
Breakpoints can only be set in the source window if the Compiler and/or Assembler have been set to generate debug information. If these options are not enabled for the project, then debug information will not be available to the IDDE. In turn, this means the IDDE will not allow the placement of breakpoints in the Source Window.
Debug information is generated by selecting the 'Generate debug information' check box which is available within the ‘General’ page of the ‘CrossCore C/C++ Compiler’ and ‘CrossCore Assembler’ tabs of the Project Properties. Please also make sure that you have NOT selected the ‘Strip Debug Information’ check box which is available in the General page of the CrossCore Linker tab of the Project Properties.
If you are not generating debug information, you can only set breakpoints in the disassembly window.
You can find information on breakpoints in CCES help using the following path:
<Help>\Contents\CrossCore Embedded Studio 1.0.x\Integrated Development Environment\Debugging Executable Files\Working with Breakpoints, Watchpoints, and Breakpoint Actions
You may also have enabled the option to Optimize your code. The optimizer may rearrange code, leading to unreliable line information in the debug information. Therefore you may be attempting to place a breakpoint at a line for which there is no debug information.
This FAQ would not be the best place to discuss the specific behaviour you are seeing; if you need any further assistance, please start a new discussion/question thread in the CCES Community and we will work with you to determine the cause.
I had selected "Generate debug information", and not selected "Strip Debug Information",but unable breakpoint. what's reason?