Description:
In debugging mode the stepping indication isn't working properly. During debugging the first while loop I get into the break statement while index is greater 0: the continue statement should be entered. Nearly the same situation with 2nd while loop but here neither break nor continue is entered. See attachment picture.
Source file While-Schleife.c:
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
unsigned char index;
unsigned short index2;
// count back from 5 to 1 and print
index = 5;
while (1)
{
printf("index = %i\n", index);
index--;
if (index >= 1)
continue;
else
break;
}
// count from 0 to 1000 and print at 50th step
index2 = 0;
do
{
if ((index2 % 50) == 0)
{
printf("index2 = %i\n", index2);
}
index2++;
if (index2 <= 1000)
continue;
else
break;
}
while (1);
return EXIT_SUCCESS;
}
Settings:
Compiler: debug information = Full, optimization = None
Assembler: debug information = Full
Linker: debug information = CodeView & COFF Format
Version:
PellesC for Windows Version 5.00.8, 32-bit
RSRC0007.DLL: Version 5.00.2
SUPPORT.DLL: Version 5.00.2
POCFMT.DLL: Version 5.00.1
PORC.DLL: Version 5.00.1
POBR.DLL: Version 5.00.2
SQLITE3.DLL: Version 3.5.3
POCC.EXE: Version 5.00.13
POASM.EXE: Version 5.00.4
POLINK.EXE: Version 5.00.1
IDESPAWN.EXE: Version 5.00.1