Breakpoint directly on C source code

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

Breakpoint directly on C source code

ソリューションへジャンプ
1,137件の閲覧回数
patonsebastien
Contributor I

Hi

 

I start to work with Codewarrior 10.6 and I have a little question about the breakpoint placement during debug session.

 

I have a code written like this:

 

test:

if(PTAD_PTAD1==1){PTBD_PTBD1=1}else{PTBD_PTBD1=0;}

goto test;

 

I can place breakpoint on the line (before if instruction) but is it possible to place a breakpoint only in the "else" bloc ?

 

Thanks

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
942件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Settings in the Editor/source view only works line by line, so you cannot set there a breakpoint on the else part, if you have all the source on a single line.

But you can use the disassembly view: here you can set breakpoints on the else block (on the assembly instruction).

Otherwise see

http://mcuoneclipse.com/2012/10/27/assembly-instruction-stepping/

Erich

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
942件の閲覧回数
patonsebastien
Contributor I

Thank you for the answer. I hope one day codewarrior 10 will support the breakpoints like this. It was sometimes very useful on Hiwave

0 件の賞賛
返信
942件の閲覧回数
matthewkendall
Contributor V

As Erich said, placing breakpoints on C code works on a line-by-line basis. If you need a breakpoint on the else clause, the most straightforward thing to do is to insert a couple of newlines, so that the if and the else clauses are on separate lines.

0 件の賞賛
返信
943件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Settings in the Editor/source view only works line by line, so you cannot set there a breakpoint on the else part, if you have all the source on a single line.

But you can use the disassembly view: here you can set breakpoints on the else block (on the assembly instruction).

Otherwise see

http://mcuoneclipse.com/2012/10/27/assembly-instruction-stepping/

Erich

0 件の賞賛
返信