Liste des Groupes | Revenir à col misc |
On Sun, 17 Nov 2024 17:17:37 GMT, Charlie Gibbs wrote:I'm a printf-man, and since I've mostly worked with systems and not mainly code logfiles have been essential for me. Have never had the need to go deeper than that.
>Horses for courses. Never underestimate the value of a few printf()s>
sprinkled here and there (or log file writes if you're really headless).
I'm still a fan of makefiles.
I'm a dinosaur so my preferred technique is either printf or log files.
For production code I've sometimes created a sequence of log statements
that can be turned on with a flag that are a narrative of what's going on.
My goal is a support person can read the file and see where the problem
occurs. Often it is a configuration issue they can fix.
>
The nice part is the technique can be used with any language and is
effective where a debugger isn't available.
>
Les messages affichés proviennent d'usenet.