cannot set breakpoints after renaming workspace directory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cannot set breakpoints after renaming workspace directory

Jump to solution
524 Views
robertpoor
Senior Contributor I

For administrative reasons, I had to rename my workspace directory.  I did a <Clean>, and nearly everything works properly.  

 

The one exception: setting breakpoints.  Part of KDS is still trying to access the old workspace directory: when I try to set a breakpoint, it prints on the console:

No source file named /Users/<old project directory>/bring_up/source/bring_up.c.

... and although KDS displays a dot on the appropriate line of code, the breakpoint is never honored.

 

How can I inform KDS that the workspace directory has moved?

Labels (1)
0 Kudos
1 Solution
414 Views
robertpoor
Senior Contributor I

To answer my own question, here's what solved the problem for me:

  1. Click on Debug Configurations...
  2. Select the configuration that's giving trouble
  3. In the right hand panel, click on the [Source] tab
  4. In the "Source Lookup Path" pane, look for an entry labeled "Path Mappings: Found Mappings"
  5. Click on that entry
  6. Click [Restore Default], which will remove the mapping

I'm guessing that the "Found Mappings" entry had captured the old directory, and the KDS was trying to use that old directory to locate source files for the breakpoints.  

View solution in original post

0 Kudos
1 Reply
415 Views
robertpoor
Senior Contributor I

To answer my own question, here's what solved the problem for me:

  1. Click on Debug Configurations...
  2. Select the configuration that's giving trouble
  3. In the right hand panel, click on the [Source] tab
  4. In the "Source Lookup Path" pane, look for an entry labeled "Path Mappings: Found Mappings"
  5. Click on that entry
  6. Click [Restore Default], which will remove the mapping

I'm guessing that the "Found Mappings" entry had captured the old directory, and the KDS was trying to use that old directory to locate source files for the breakpoints.  

0 Kudos