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.

New to CCStudio, question about real-time debugging/compiling/reprogramming

I currently use another IDE and am looking at Code Composer Studio as it has some advantages. The feature I am looking for is similar to one in Visual Studio, and the best I can describe it is with the following scenario:

Say I am currently debugging running code on a microcontroller and have the program stopped at a breakpoint on a line of C code. I see that I need to insert some code beneath the current line of code, and type it in the IDE. In my current IDE I then have to stop debugging, recompile and relink, reprogram, reexecute to the same location, and then continue debugging. What I want is the ability to add the new code and step directly to it without the cumbersome steps listed above. I realize those steps have to take place when new code is added, but in VS these steps occur very quickly and are transparent to the user. Does Code Composer have such a feature or ability to do code updates on-the-fly during debug like this?

  • dayberry said:
    In my current IDE I then have to stop debugging, recompile and relink, reprogram, reexecute to the same location, and then continue debugging.

    You would have to do the same steps in CCS. You can have CCS automate some of these steps to make it more seamless but it won't be as transparent as you see in VS.

  • I do want to add that there is one button called "Debug Active Project" (as shown in this video) that will automatically build your project, start the debugger, load your program and run to main (or a specified label).. all with one button press. So in your scenario, in the middle of your debug session, you can make a change to you source code and then press the "Debug Active Project" button and it will shutdown the current session, save the modified source file, rebuild the project, start the debugger, reload the program, restore any previously set breakpoints and run to main (or the breakpoint). You may get some prompts along the way (some of which you can disable). This may be close enough to what you are looking for.