Saturday, December 11, 2021

Compilation Mode

I remember having a program that works fine in Release Mode, but when I change to Debug Mode, the program crash. The Debug Mode requires adding debug stop points in specific locations for it to work. Thus, I just say no to Debug Mode and return to Print Debugging.

There's more problem to Debug Mode. (1) it always zero initialize data, so it cannot catch uninitialized bugs. (2) Loops are limited to 100 iterations if it has no side effect, so programmers may write unnecessary side effects until a compiler could solve the halting problem. (3) Assertions cannot fail.

No comments: