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.

Multiple instances of source code tabs in debug window?

Hi, this is a minor issue I'm having with CC 4.2 under Win7.  But it concerns me enough that I'd like an explanation.  While working in debug mode, CC frequently creates multiple instances of my .c source files (ie, of the same .c file) in separate tabs in the debug source code pane.  One instance may reflect code changes and/or breakpoints and the other won't.  How can I prevent this from happening?  Is it OK to delete these redundant panes as they're created?  Which version should I edit or set breakpoints in?  Thanks.

  • Chris,

    Are you working with projects or just debugging an .out file?  The reason I ask is that if you are mainly using CCS as a debugger and setting up source search paths I could see it not noticing that you already had a file open in the editor prior to launching the debugging.

    If you make a change in one of the tabs then the editor should notice that it has changed and pop up a dialog like this for the other tab:

    As far as setting breakpoints I would use the one that the debugger opened.

    It should be fine to close the other tabs.

     

    I would love to reproduce this as it seems like something I should file a defect for.  What device are you debugging?  Any chance you could send me the project via a private message?

    Regards,

    John