Breakpoints in MPLAB

Started by Basic Poke May 23, 2008
I am having a rough time with the breakpoints in MPLAB 8.10, using
MPLAB ICD 2 as the debugger. The debugger will often stop at the line
after the breakpoint, but sometimes right on it, and sometimes on some
other line near the breakpoint. Sometimes when I put a breakpoint on a
function call, it will stop at the function header (for example "void
InitializeMCU (void)"). And the Step-Over is really flaky too. I have
compiler optimizations turned of supposedly with the -O- option.

Is it common for MPLAB to work this way? Does anyone have any ideas on
a different IDE for Microchip products that works better? IAR for
example? I heard something about CCS, any comments?

Thanks
BasicPoke
> I am having a rough time with the breakpoints in MPLAB 8.10, using
> MPLAB ICD 2 as the debugger. The debugger will often stop at the line
> after the breakpoint, but sometimes right on it, and sometimes on some
> other line near the breakpoint. Sometimes when I put a breakpoint on a
> function call, it will stop at the function header (for example "void
> InitializeMCU (void)"). And the Step-Over is really flaky too. I have
> compiler optimizations turned of supposedly with the -O- option.
>
> Is it common for MPLAB to work this way? Does anyone have any ideas on
> a different IDE for Microchip products that works better? IAR for
> example? I heard something about CCS, any comments?

You must not have aggressive optimizations turned on, you'd be talking
about even more bizarre stopping points! :) Yes, this is common,
especially with compiler optimizations turned on. The cursor will
appear at the closest point it can to what you have selected. Often you
will get an error that the debugger _can't_ stop on some breakpoint
spots, that gets frustrating. I like to debug without optimizations if
I can for these reasons.

DLC

> Thanks
> BasicPoke
>
>
> to unsubscribe, go to http://www.yahoogroups.com and follow the
> instructions