cannot set breakpoints after renaming workspace directory

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

cannot set breakpoints after renaming workspace directory

ソリューションへジャンプ
1,049件の閲覧回数
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?

ラベル(1)
0 件の賞賛
返信
1 解決策
939件の閲覧回数
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 件の賞賛
返信
1 返信
940件の閲覧回数
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 件の賞賛
返信