libcwd: The C++ Debugging Support Library - Quick Reference
Author: Carlo Wood

| libcwd |
LINKS
Home Page Features "Screenshot" Tutorial Reference Manual Quick Reference Download Mailinglists
Quick Reference
#### Installation Read the INSTALL file. #### Using libcwd with a new project Add sys.h and debug.h as header files to your application. Add debug.cc as source file to your application. Add `#include "sys.h"` to the top of every source file in your application. Add `#include "debug.h"` to every source file needing debug output/code. Dump this at the start of your `main()` function. #### Debug Output `Dout(dc::notice, "Hello" << ' ' << "World");` `Dout(dc::notice|blank_label_cf|error_cf, "Hello World");` Other Control flags #### Memory Allocations `MyClass* p = new MyClass; AllocTag(p, "This is an example");` Other AllocTag memory allocation annotation macros. `Debug( list_allocations_on(libcw_do) );`