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.

CCSTUDIO: Processors forum

Part Number: CCSTUDIO

Tool/software:

Hi,

Is there an option in Code Composer Studio (CCS) that allows for direct debugging without rebuilding the code?

  • Hello Ankit,

    I do not understand your question.

    You would be required to build your project in order to get a .out file which will be loaded onto the respective core and then you can start debugging given you have a Debugger attached to your custom board/hardware.

    Regards,

    Vaibhav

  • Hello Ankit,

    I am writing this separately.

    So did you meant, lets say you once build the application and now started debugging.

    Now while debugging you are lets say in some file file.c and you added one line of code in file.c and saved it at that spot itself.

    Now you want the debugger to consider that added line as well without rebuilding the project?

    If that is what you are asking for, it is not possible as of now.

    A part of the reason being your loaded .out of the application onto a respective core only knows about file.c(which did not had one extra code line which you added).

    Hope this clarifies your doubts.

    Regards,

    Vaibhav

  • Hi Vaibhav,

    Thank you for your response!

    I understand your point, but I believe that approach should apply only when I have made changes to the code. In my case, I just want to debug without modifying anything. However, when I click the debug button, it rebuilds the project before starting the debugging process, which doesn't seem necessary to me.

  • Hi Ankit,

    However, when I click the debug button, it rebuilds the project before starting the debugging process, which doesn't seem necessary to me.

    When you click on the debug button for the first time, when the example project's *.out file is not generated then it will first build the project to generate the *.out file and load it to the respective core which is selected during debug. After that if the example project is left un-modified and you try to debug the project again, you will get logs similar to what is shown below.

    **** Build of configuration Release for project example_project ****
    
    "C:\\ti\\ccs1271\\ccs\\utils\\bin\\gmake" -k -j 20 all -O 
     
    gmake[1]: 'example_project.out' is up to date.
    
    **** Build Finished ****

    The example project will not be rebuilt(if left un-modified) and the same *.out is loaded to the respective core. 

    Hope this information helps.

    Regards,

    Tushar