sadlpx
Joined: 19 Feb 2004 Posts: 23
|
debugger ignoring step/stepovers. |
Posted: Tue Oct 28, 2008 12:13 pm |
|
|
Using PCWH version 4.030 ( yes old).
I'm having two problems that I cannot explain in the code snippets below.
These comments do not apply to the Printf(lcd_putc... lines ont he standard RS232 printF(".. code
I do a "run to cursor" on any statement including the printf. But once stopped, I cannot just "step" or "step overs" those printf statements to trace problems. The program starts to run from that point (printf) and keeps going. I can single step on the delays and output steps but not the printfs. Any ideas.
Also the statement
Code: | printf ("Minute = %3ld \r", Min_cntr ); |
executes fine - good putout
but the statement in another routine
Code: | printf ("!STAT %3ld, %3ld, [%3ld, *, 0.00488] \r", Min_cntr, ADv, ADv); |
does not execute - jumps over with no output.
Code: |
//***********************************************************
// At the end of each minute the LCD is updated and minute counter
// is sent to the Debug Screen
//
void Display_Minute(void)
{
// first output to LCD
lcd_gotoxy (1, 1);
printf(lcd_putc, "Minute = %3ld:%2d ", Min_cntr, sec_cntr);
// Then output to Splot
printf ("Minute = %3ld \r", Min_cntr ); // Send Minute counter to Debug
}
//***********************************************************
void out_Stampplot(void)
{
output_high(_led_fail);
delay_ms(10);
// send data for Message display
printf ("!STAT %3ld, %3ld, [%3ld, *, 0.00488] \r", Min_cntr, ADv, ADv);
// send data for graph
printf ("!ACHN 3,[ %3ld, *, 0.00488] ,(Black) \r", ADv);
printf ("!ACHN 0,[ %3ld, *, 0.00488] ,(GREEN) \r", ADmax);
printf ("!ACHN 1,[ %3ld, *, 0.00488] ,(RED) \r", ADmin);
// printf ("!ACHN 0,", DEC Val1, ",(BLACK) \r");
output_low(_led_fail);
} |
|
|