danieldlo09 reacted to chicken in I can't see a global variable
Not sure if that's what confuses the debugger, but you don't need the
extern int unsigned count declaration in main.
You only need extern for variables and functions that are declared in another module, i.e. can't be resolved by the compiler. See