I would like to display some log messages when debugging. One option is to use the very ugly
#ifdef DEBUG std::cout << "I'm in debug mode!\n"; #endif In the JUCE library, there is a nice macro that outputs text to the debugging pane
DBG("I'm in debug mode!") The juce solution also allows you to do neat stuff like the following that would be desirable
int x = 4; DBG(String("x=") + String(x)) I would like to know if a similarly neat method exists in std:: or boost::
DebugOutputString()function. So making a single universal solution is pretty much impossible. :)