I have found the problem:
I think fhe debugger gdb itself must have a bug or is not configured correctly.
No matter where I set an breakpoint, execution never stopped, even in functions which definitely have been executed (I could see them in action by the output the program produces).
I don't need any help now, because I regularly write and debug on Linux where the debugger works correctly.