Pete
HOME CTHREE SEARCH ?
pete
pete > c++ > dbg pete // kids // c++ // software // publications // more
 

About the dbg library

The dbg library is a set of C++ utilities to facilitate modern debugging idioms.

It has been designed to support defensive programming techniques in modern C++ code. It integrates well with standard library usage and has been carefully designed to be easy to write, easy to read and very easy to use.

It provides various constraint checking utilities together with an integrated error logging facility. These utilities are flexible and customisable. They can be enabled and disabled at runtime, and in release builds, dbg library use can be compiled away to nothing.

dbg library features include:

  • Expressive constraint checking utilities
  • Integrated stream-based logging facilities
  • Execution tracing support
  • Differentiates between different sources of diagnostics - you can enable/disable them all independantly
  • Easy to use, powerful, configurable
  • assertion behaviour can be altered at runtime (abort, throw, or continue)
  • Integrates well with modern C++ code
  • Can be compiled out with no overhead

Publications

I've written an article about modern C++ debugging techniques which was originally published in Overload magazine. It's available on-line from the dbg library homepage.

There is extensive dbg library documentation available, see the dbg library homepage for this.

How to get it

The dbg library homepage is at http://cthree.org/dbg/.

More information and code downloads are available from there.

© Pete Goodliffe, 2002-4. All rights reserved. Last updated Wed 24 March 2004
Embrace the laaaard.
God grant me the serenity to accept the things I cannot change
  Courage to change the things I can
  And wisdom to know the difference