OSDN Git Service

Doc: update debugging example
authorLeena Miettinen <riitta-leena.miettinen@nokia.com>
Fri, 19 Aug 2011 13:51:46 +0000 (15:51 +0200)
committerhjk <qthjk@ovi.com>
Fri, 19 Aug 2011 13:57:37 +0000 (15:57 +0200)
Change-Id: I7424f24561c91057be2f10bb0009dbe94e4db2fb
Reviewed-on: http://codereview.qt.nokia.com/3275
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
doc/images/qtcreator-debugger-views.png
doc/images/qtcreator-setting-breakpoint1.png
doc/images/qtcreator-setting-breakpoint2.png
doc/images/qtcreator-watcher.png
doc/qtcreator.qdoc

index cffb86b..b7e6d19 100644 (file)
Binary files a/doc/images/qtcreator-debugger-views.png and b/doc/images/qtcreator-debugger-views.png differ
index 5a4a5d9..3b6e275 100644 (file)
Binary files a/doc/images/qtcreator-setting-breakpoint1.png and b/doc/images/qtcreator-setting-breakpoint1.png differ
index 13ef895..8687b36 100644 (file)
Binary files a/doc/images/qtcreator-setting-breakpoint2.png and b/doc/images/qtcreator-setting-breakpoint2.png differ
index 9babacd..14399eb 100644 (file)
Binary files a/doc/images/qtcreator-watcher.png and b/doc/images/qtcreator-watcher.png differ
index 3025f96..9d877fd 100644 (file)
     This section uses the \l{Creating a Qt Widget Based Application}{TextFinder} example to
     illustrate how to debug Qt C++ applications in the \gui Debug mode.
 
-    TextFinder
-    reads a text file into
-    QString and then displays it with QTextEdit.
-    To look at the example QString, \c{line}, and see the
-    stored data, place a breakpoint and view the QString object
-    data in textfinder.cpp, as follows:
+    TextFinder reads a text file into QString and then displays it with
+    QTextEdit. To look at the TextFinder class and see the stored data, place
+    a breakpoint in textfinder.cpp, as follows:
 
     \list 1
         \o Click in between the line number and the window border on the line
-        where we invoke \l{http://doc.qt.nokia.com/4.7/qtextedit.html#plainText-prop}{setPlainText()}
-        to set a breakpoint.
+        where we change the cursor position to set a breakpoint.
 
         \image qtcreator-setting-breakpoint1.png
 
         \o To remove a breakpoint, right-click it and select \gui{Delete Breakpoint}.
 
 
-        \o To view the contents of \c{line}, go to the \gui{Locals and
-    Expressions} view.
+        \o To view the base classes and data members of the TextFinder class,
+        go to the \gui{Locals and Expressions} view.
 
         \image qtcreator-watcher.png