debugger: switch do fkleint's style of debug output enabling

This commit is contained in:
hjk
2011-01-25 10:59:45 +01:00
parent 1160c3e92d
commit c3ff7fa73d
3 changed files with 14 additions and 25 deletions

View File

@@ -61,19 +61,16 @@
#include <ctype.h>
#include <utils/qtcassert.h>
// Creates debug output for accesses to the model.
//#define DEBUG_MODEL 1
#if DEBUG_MODEL
# define MODEL_DEBUG(s) qDebug() << s
#else
# define MODEL_DEBUG(s)
#endif
#define MODEL_DEBUGX(s) qDebug() << s
namespace Debugger {
namespace Internal {
// Creates debug output for accesses to the model.
enum { debugModel = 0 };
#define MODEL_DEBUG(s) do { if (debugModel) qDebug() << s; } while (0)
#define MODEL_DEBUGX(s) qDebug() << s
static const QString strNotInScope =
QCoreApplication::translate("Debugger::Internal::WatchData", "<not in scope>");