Wouldn't it be possible to put the debugFct call before each wait(1);? That would basically do what you need.
Hm, yeah... it's just that I have about a thousand wait calls. But I guess it'll be the way I have to go, maybe there's some files I can rule out beforehand...
Rackscha, I guess that's too late for me. I'm not gonna rewrite CSiS a fourth time... But for any future projects I'll definitely think about the structure beforehand.