diff options
Diffstat (limited to 'doc/html/debug.html')
-rw-r--r-- | doc/html/debug.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/debug.html b/doc/html/debug.html index f3bb5cd1b..c48aa6e0c 100644 --- a/doc/html/debug.html +++ b/doc/html/debug.html @@ -41,7 +41,7 @@ that can help with debugging. <p> <center><table cellpadding="4" cellspacing="2" border="0"> <tr bgcolor="#a2c511"> <th valign="top">Option <th valign="top">Result <tr bgcolor="#f0f0f0"> <td valign="top">-nograb -<td valign="top">The application should never grab <a href="qwidget.html#grabMouse">the mouse</a> or <a href="qwidget.html#grabKeyboard">the +<td valign="top">The application should never grab <a href="ntqwidget.html#grabMouse">the mouse</a> or <a href="ntqwidget.html#grabKeyboard">the keyboard</a>. This option is set by default when the program is running in the <tt>gdb</tt> debugger under Linux. <tr bgcolor="#d0d0d0"> <td valign="top">-dograb @@ -59,29 +59,29 @@ option is only valid for the X11 version of TQt. <a name="2"></a><p> TQt includes three global functions for writing out warning and debug text. <ul> -<li> <a href="qapplication.html#qDebug">qDebug()</a> for writing debug output for testing etc. -<li> <a href="qapplication.html#qWarning">qWarning()</a> for writing warning output when program +<li> <a href="ntqapplication.html#qDebug">qDebug()</a> for writing debug output for testing etc. +<li> <a href="ntqapplication.html#qWarning">qWarning()</a> for writing warning output when program errors occur. -<li> <a href="qapplication.html#qFatal">qFatal()</a> for writing fatal error messages +<li> <a href="ntqapplication.html#qFatal">qFatal()</a> for writing fatal error messages and exiting. </ul> <p> The TQt implementation of these functions prints the text to the <tt>stderr</tt> output under Unix/X11 and to the debugger under Windows. You can take over these functions by installing a message handler; -<a href="qapplication.html#qInstallMsgHandler">qInstallMsgHandler()</a>. -<p> The debugging functions <a href="qobject.html#dumpObjectTree">TQObject::dumpObjectTree</a>() and <a href="qobject.html#dumpObjectInfo">TQObject::dumpObjectInfo</a>() are often useful when an application looks +<a href="ntqapplication.html#qInstallMsgHandler">qInstallMsgHandler()</a>. +<p> The debugging functions <a href="ntqobject.html#dumpObjectTree">TQObject::dumpObjectTree</a>() and <a href="ntqobject.html#dumpObjectInfo">TQObject::dumpObjectInfo</a>() are often useful when an application looks or acts strangely. More useful if you use object names than not, but often useful even without names. <p> <h2> Debugging Macros </h2> -<a name="3"></a><p> The header file <a href="qglobal-h.html">qglobal.h</a> contains many debugging macros and +<a name="3"></a><p> The header file <a href="qglobal-h.html">ntqglobal.h</a> contains many debugging macros and <tt>#define</tt>s. <p> Two important macros are: <ul> -<li> <a href="qapplication.html#Q_ASSERT">Q_ASSERT(b)</a> where b is a boolean +<li> <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT(b)</a> where b is a boolean expression, writes the warning: "ASSERT: 'b' in file file.cpp (234)" if b is FALSE. -<li> <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR(p)</a> where p is a pointer. +<li> <a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR(p)</a> where p is a pointer. Writes the warning "In file file.cpp, line 234: Out of memory" if p is 0. </ul> @@ -89,9 +89,9 @@ Writes the warning "In file file.cpp, line 234: Out of memory" if p is <pre> char *alloc( int size ) { - <a href="qapplication.html#Q_ASSERT">Q_ASSERT</a>( size > 0 ); + <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>( size > 0 ); char *p = new char[size]; - <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( p ); + <a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( p ); return p; } </pre> @@ -108,7 +108,7 @@ Q_CHECK_PTR: char *alloc( int size ) { char *p; - <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( p = new char[size] ); // WRONG! + <a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( p = new char[size] ); // WRONG! return p; } </pre> @@ -141,12 +141,12 @@ define QT_NO_CHECK. { #if defined(QT_CHECK_NULL) if ( p == 0 ) - <a href="qapplication.html#qWarning">qWarning</a>( "f: Null pointer not allowed" ); + <a href="ntqapplication.html#qWarning">qWarning</a>( "f: Null pointer not allowed" ); #endif #if defined(QT_CHECK_RANGE) if ( i < 0 ) - <a href="qapplication.html#qWarning">qWarning</a>( "f: The index cannot be negative" ); + <a href="ntqapplication.html#qWarning">qWarning</a>( "f: The index cannot be negative" ); #endif } </pre> |