#define VP_DEBUG_MODE 2 // Activate debug level 1 and 2
#include <visp3/core/vpDebug.h>
int main()
{
std::cout <<
"Debug level 1 active: " <<
vpDEBUG_ENABLE(1) << std::endl;
std::cout <<
"Debug level 2 active: " <<
vpDEBUG_ENABLE(2) << std::endl;
std::cout <<
"Debug level 3 active: " <<
vpDEBUG_ENABLE(3) << std::endl;
vpTRACE(1,
"C-like trace level 1");
vpCTRACE <<
"C++-like trace" << std::endl;
vpCERROR <<
"C++-like error trace" << std::endl;
vpCDEBUG(2) <<
"C++-like debug trace level 2" << std::endl;
}