Breakpoints move while editing

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

Breakpoints move while editing

811 Views
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

Labels (1)
Tags (2)
0 Kudos
Reply
1 Reply

675 Views
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 Kudos
Reply