Breakpoints move while editing

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

Breakpoints move while editing

808件の閲覧回数
larrycarter
Contributor I

I am using CodeWarrior and a Freedom board.  After setting a breakpoint, ANY edit of the source code above the line causes the breakpoint to stay with the editor line number and not stay with the source code line it was set on.  Thus I must delete all of my breakpoints and add new ones at the line I want to break when I go back into the debugger.  How do I get the breakpoints to stay with the source code line?

 

1) The behavior is, set a breakpoint at a line of code.  All is well.

2) Add a extra blank line in the source code above the breakpoint and recompile.

3)  When I go back into the debugger, the breakpoint jumps to line of code above its previous position.

 

Thanks for your help

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 返信

672件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Larry:

The Eclipse environment of CodeWarrior sets the breakpoints to editor line numbers and not "code lines". So I'm afraid you are correct, you need to update your breakpoints whenever you add something above. There is no option in Eclipse to change that behavior.

Regards!

Jorge Gonzalez

0 件の賞賛
返信