Feel++ 0.91.0
Debug Class Reference

Area debugging tool. More...


Detailed Description

Area debugging tool.

Debug() provides a debug stream to which you can pass a number, say 100, associated to an area of the code, say a class A. In the implementation of the class A, you use debug statement like

void A::f() { Debug(100) << "A::f() is called.\n"; do something here }

Now the debug message "A::f() is called." will be seen only if the area 100 is defined in the environment(shell) variable DEBUG while executing a program A::f() is called runWithA that makes use of our class A.

> runwithA --> no debug message related to A > export DEBUG="100" > runwithA A::f() is called.

With this tool you can select the area you want to debug explicitly while keeping the others hidden.

Author:
Christophe Prud'homme (christophe.prudhomme@ujf-grenoble.fr)