KDECore
Debug message generators
Detailed Description
KDE debug message streams let you and the user control just how many debug messages you see.
Debug message printing is controlled by (un)defining QT_NO_DEBUG when compiling your source. If QT_NO_DEBUG is defined then no debug messages are printed.
|
Classes |
| struct | KDebugTag |
| class | kndbgstream |
| class | KDebug |
Defines |
| #define | k_funcinfo "" |
| #define | k_lineinfo "[" << __FILE__ << ":" << __LINE__ << "] " |
| #define | KDE_DEFAULT_DEBUG_AREA 0 |
| #define | kDebug KDebug(QtDebugMsg, __FILE__, __LINE__, Q_FUNC_INFO) |
| #define | kWarning KDebug(QtWarningMsg, __FILE__, __LINE__, Q_FUNC_INFO) |
Typedefs |
| typedef QDebug(* | KDebugStreamFunction )(QDebug, KDebugTag) |
| typedef QDebug | kdbgstream |
Functions |
| QDebug | kDebugStream (QtMsgType level, int area, const char *file=0, int line=-1, const char *funcinfo=0) |
| QDebug | kDebugDevNull () |
| QString | kRealBacktrace (int) |
| static QDebug | kDebug (bool cond, int area=KDE_DEFAULT_DEBUG_AREA) |
| static QDebug | kWarning (bool cond, int area=KDE_DEFAULT_DEBUG_AREA) |
| static QDebug | kError (bool cond, int area=KDE_DEFAULT_DEBUG_AREA) |
| static QDebug | kFatal (bool cond, int area=KDE_DEFAULT_DEBUG_AREA) |
| QDebug | operator<< (QDebug s, KDebugStreamFunction f) |
| QDebug | operator<< (QDebug s, const KUrl &url) |
| QDebug | operator<< (QDebug s, const KDateTime &time) |
| static QDebug | kdDebug (int area=KDE_DEFAULT_DEBUG_AREA) |
| static QDebug | kdWarning (int area=KDE_DEFAULT_DEBUG_AREA) |
| static QDebug | kdError (int area=KDE_DEFAULT_DEBUG_AREA) |
| static QDebug | kdFatal (int area=KDE_DEFAULT_DEBUG_AREA) |
| static QString | kdBacktrace (int levels=-1) |
| static QDebug | kndDebug () |
Define Documentation
An indicator of where you are in a source file, to be used in warnings (perhaps debug messages too).
- Deprecated:
- kDebug takes care of printing the method name automatically now
Definition at line 56 of file kdebug.h.
| #define k_lineinfo "[" << __FILE__ << ":" << __LINE__ << "] " |
An indicator of where you are in a source file, to be used in warnings (perhaps debug messages too).
Gives an accurate idea of where the message comes from. Not suitable for user-visible messages.
- Deprecated:
- kDebug takes care of printing the method name automatically now
Definition at line 65 of file kdebug.h.
| #define KDE_DEFAULT_DEBUG_AREA 0 |
| #define kDebug KDebug(QtDebugMsg, __FILE__, __LINE__, Q_FUNC_INFO) |
| #define kWarning KDebug(QtWarningMsg, __FILE__, __LINE__, Q_FUNC_INFO) |
Typedef Documentation
Function Documentation
| static QString kdBacktrace |
( |
int |
levels = -1 |
) |
[inline, static] |
| static QDebug kdDebug |
( |
int |
area = KDE_DEFAULT_DEBUG_AREA |
) |
[inline, static] |
| static QDebug kDebug |
( |
bool |
cond, |
|
|
int |
area = KDE_DEFAULT_DEBUG_AREA | |
|
) |
| | [inline, static] |
| QDebug kDebugStream |
( |
QtMsgType |
level, |
|
|
int |
area, |
|
|
const char * |
file = 0, |
|
|
int |
line = -1, |
|
|
const char * |
funcinfo = 0 | |
|
) |
| | |
| static QDebug kdError |
( |
int |
area = KDE_DEFAULT_DEBUG_AREA |
) |
[inline, static] |
| static QDebug kdFatal |
( |
int |
area = KDE_DEFAULT_DEBUG_AREA |
) |
[inline, static] |
| static QDebug kdWarning |
( |
int |
area = KDE_DEFAULT_DEBUG_AREA |
) |
[inline, static] |
| static QDebug kError |
( |
bool |
cond, |
|
|
int |
area = KDE_DEFAULT_DEBUG_AREA | |
|
) |
| | [inline, static] |
| static QDebug kFatal |
( |
bool |
cond, |
|
|
int |
area = KDE_DEFAULT_DEBUG_AREA | |
|
) |
| | [inline, static] |
| static QDebug kndDebug |
( |
|
) |
[inline, static] |
| static QDebug kWarning |
( |
bool |
cond, |
|
|
int |
area = KDE_DEFAULT_DEBUG_AREA | |
|
) |
| | [inline, static] |
| QDebug operator<< |
( |
QDebug |
s, |
|
|
const KDateTime & |
time | |
|
) |
| | |
| QDebug operator<< |
( |
QDebug |
s, |
|
|
const KUrl & |
url | |
|
) |
| | |