In order to facilitate the debugging of new developments, Matthieu and I are proposing to have different debug levels in the build system, controlled by --enable-debug:
- no: debugging fully disabled;
- yes: debug symbols are provided;
- enhanced: more sensible warnings are enabled;
- paranoid: array bound checks, et c.
Matthieu proposes that debug flags be incremental, i.e. a specific level receives all flags from the previous ones plus a few more.
Do not hesitate to provide comments and suggestions. If I receive no strong opposition in the coming weeks, I will consider this proposal as a specification and implement it.