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.

develop a PC application with CCS

Hi,


I would like to develop a PC application in C. As I have CCS 5.5 already installed, I thought I would use it for the programming. I have installed a proper compiler (MinGW toolchain), and the programming and build works perfectly. Problem comes when I want to debug.


As far as Google tells me, in a regular eclipse IDE, there is a debug configuration called "local C/C++ application", and I it seems that one just needs to select this one to debug the program. But in CCS, this option is not available. Strangely, the "remote C/C++ application" debug configuration is available. Isn't it crazy that I can debug a C program remotely but not locally ?

Does anyone know how to set up CCS to have the right debug option ?

Thanks

Best regards

Adrien

  • Adrien,

    In order to enable additional capabilities to the tool (just like the local C/C++ application) you can go to menu Window --> Preferences --> General --> Capabilities

    I think you need to enable "CDT GDB debugging" to allow debugging local C/C++ applications (I haven't done this before, therefore I am not 100% sure).

    What OS you are you planning to use? If Linux, then it would be a lot simpler as it uses GDB as the standard debugger. Good articles can be found on the CDT Documentation page at:

    http://www.eclipse.org/cdt/documentation.php

    If Windows, I couldn't find much information on the web, and a few discussions indicate this is not well supported or implemented.

    Hope this helps,

    Rafael

  • Hi Rafael,

    It seems to work. I haven't tried it in deep details, but I can launch a debug session, and that's already a big improvement. I will check everything works fine later on.

    Thank you very much for your help !

    Adrien

  • Hi Rafael,

    Turn on the "CDT GDB debugging" works great.  I would suggest that you talk with the CCS team to make it a default.  This is especially useful for university classroom environment where regular C/C++ programs are exercised before going to Launchpad.

    thanks again,

    frank