next up previous contents
Next: If nothing else works: Up: Debugging Strategies Previous: Use a Debugger   Contents

Just printf() it!

Sometimes, tracing the execution with a logging function may be more convenient than using a debugger. (such as when you want to print a brunch of variables) Some strategic placed prinfs()4.1 may give you a better view of what's going on while the program is running.

Thiago A Correa 2001-06-09