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.

Breakpoint automatically moved at the beginning of the fonction

Hello.

I'm working on a C6713  with CCS v 3.3. When i try to put a breakpoint on a line it's automatically removed at the beginning of the function where the line is included ( for example main). I patched CCS at nothing changed.

Thank you

  • Hi,

    Moving your post to right forum to be better answered.

    Thanks & regards,
    Sivaraj K
  • Jerome Haxhiaj said:
    When i try to put a breakpoint on a line it's automatically removed at the beginning of the function where the line is included ( for example main).

    The first thing I would check is whether optimization is turned on for the project. It could be that the line where you are trying to set the breakpoint is getting optimized out. Depending on how the code is optimized, there may be certain source lines where a breakpoint cannot be set as there may not be any assembly code associated with it. Disabling optimization completely should resolve the issue in such cases.

    You could also try opening the CCS disassembly view and setting the breakpoint on specific assembly instructions.

  • Thank you. Disabling optimisation solved everything.