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
解決済! 解決策の投稿を見る。
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
Thank you for the answer. I hope one day codewarrior 10 will support the breakpoints like this. It was sometimes very useful on Hiwave
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.
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