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.

Debugger goes through wrong files

Hi,

CC v3.3

In some of my projects debugger goes through files from wrong project but with the right names.

I use mixe "specific file compiler settings" from full debug information to o3 optimization without debug information.

I put brake points in files with full debug information without optimization only.

I gues some of debugger working files is corrupted.

Can you help.

 

  • Hi Mark,

    Mark Moldavsky said:
    In some of my projects debugger goes through files from wrong project but with the right names.

    Do you have both projects open in CCS?

    Another thing to check is if you set up any debug search source paths set up that may point to the wrong files.

    Thanks

    ki

  • Hi,

    1. Yes, I have about 20 projects in current workspace. Some of them contain files with the same name.

    2. What is mean search path in debugger? Can you explain? Maybe you mean search path in project?

    Thanks

    Mark

     

  • Mark Moldavsky said:
    1. Yes, I have about 20 projects in current workspace. Some of them contain files with the same name.

    I would expect that the debugger would pick the right ones despite the identical name. Could you close the other projects and see if that resolves the issue?

    Mark Moldavsky said:
    2. What is mean search path in debugger? Can you explain? Maybe you mean search path in project?

    see slide 27 of: http://processors.wiki.ti.com/images/d/d3/CCStudio_Tips_and_Tricks.pdf

    Thanks

    ki

  • Hi, Ki

    It is OK when I closed projects containing files with the name that running one.

    Do you now what to do to prevent debugger to search files in passive projects?

    What working files of debugger to check? Maybe it is settings in active project?

    Thank you very much for help.

    Mark

     

  • Mark Moldavsky said:
    What working files of debugger to check? Maybe it is settings in active project?

    This should be the case. When it was picking up the wrong files, what project was the active project?

  • Hi,Ki

    First excuse me for delay.

    I checked all projects and debugger settings.

    1. Options->Customize->Directories window is empty

    2. It is happend with files from dependant project(library)

    3. Looks like debugger is searching for the file in projects according to alfa-bet

    For example, I have 3 projects

    Main pr.        Dep pr.      Dir of dep. pr. in main pr.

    DSP4         Filters                 Filters

    LL               LL_Filters           Filters

    SS_LL        SS_LL_Filters    Filters      is active now

    I debug file FilterProc.c

    Debugger takes it from DSP4

    If I close project DSP4 debugger takes it from LL.

    I gues debugger use .wks file to pick up file. Maybe it is corrupted and debugger doesn't know what project is active now?

    Mark