diff options
author | Leena Miettinen <riitta-leena.miettinen@nokia.com> | 2011-03-23 17:15:20 +0100 |
---|---|---|
committer | Leena Miettinen <riitta-leena.miettinen@nokia.com> | 2011-03-23 17:16:04 +0100 |
commit | 869122d62982ab699bcfc68574b34e1bcaf340ca (patch) | |
tree | 505675ba32a93a93f4642f2d1a37fec32d063a74 /doc/qtcreator.qdoc | |
parent | ef1ea9312f122b3343f40d99ed629f509978d44c (diff) | |
download | qt-creator-869122d62982ab699bcfc68574b34e1bcaf340ca.tar.gz |
Doc: Valgrind Memcheck integration
Reviewed-by: hjk
Diffstat (limited to 'doc/qtcreator.qdoc')
-rw-r--r-- | doc/qtcreator.qdoc | 65 |
1 files changed, 52 insertions, 13 deletions
diff --git a/doc/qtcreator.qdoc b/doc/qtcreator.qdoc index 44c5aedcfb..89b5666b43 100644 --- a/doc/qtcreator.qdoc +++ b/doc/qtcreator.qdoc @@ -135,6 +135,7 @@ \o \l{Launching the Debugger in Different Modes} \o \l{Using Debugging Helpers} \o \l{Debugging Qt Quick Projects} + \o \l{Detecting Memory Leaks} \o \l{Troubleshooting Debugger} \endlist \o \l{Using the Maemo Emulator} @@ -7020,24 +7021,34 @@ \list - \o \l{Debugging the Example Application} uses an example application to illustrate - how to debug Qt C++ applications in the \gui Debug mode. + \o \l{Debugging the Example Application} uses an example application + to illustrate how to debug Qt C++ applications in the \gui Debug + mode. - \o \l{Interacting with the Debugger} describes the views and functions available - in the \gui Debug mode. + \o \l{Interacting with the Debugger} describes the views and functions + available in the \gui Debug mode. - \o \l{Setting Up Debugger} summarizes the support for debugging C++ code and - requirements for installation. Typically, the interaction between Qt Creator - and the native debugger is set up automatically and you do not need to do anything. + \o \l{Setting Up Debugger} summarizes the support for debugging C++ + code and requirements for installation. Typically, the interaction + between Qt Creator and the native debugger is set up automatically + and you do not need to do anything. - \o \l{Launching the Debugger in Different Modes} describes the operating modes in which the - debugger plugin runs, depending on where and how the process is started and run. + \o \l{Launching the Debugger in Different Modes} describes the + operating modes in which the debugger plugin runs, depending on + where and how the process is started and run. - \o \l{Using Debugging Helpers} describes how to get more detailed data - on complex data. + \o \l{Using Debugging Helpers} describes how to get more detailed data + on complex data. - \o \l{Debugging Qt Quick Projects} describes how to debug Qt Quick projects. + \o \l{Debugging Qt Quick Projects} describes how to debug Qt Quick + projects. + + \o \l{Detecting Memory Leaks} describes how to use the Valgrind + Memcheck tool to detect problems in memory management. + + \o \l{Troubleshooting Debugger} lists some typical problems that you + might encounter while debugging and solutions to them. \endlist @@ -11149,7 +11160,7 @@ \title Troubleshooting Debugger This section lists some typical problems that you might encounter while - debugging and solutions for them. + debugging and solutions to them. \section1 Debugger Does Not Hit Breakpoints @@ -11206,3 +11217,31 @@ they find garbage and declare the variable to be <not in scope>. */ + + + /*! + \contentspage index.html + \previouspage creator-debugging-qml.html + \page creator-analyzer.html + \nextpage creator-maemo-emulator.html + + \title Detecting Memory Leaks + + You can use the Memcheck tool included in the + \l{http://valgrind.org/info/tools.html}{Valgrind tool suite} to detect + problems that are related to memory management in applications. + + \note Memcheck is supported on Linux and Mac OS. + + After you download and install Memcheck, you can use it from Qt Creator. + To analyze applications, select \gui {Debug > Start Analyzer > Start}. + While the application is running, Memcheck checks all reads and writes of + memory and intercepts calls that allocate or free memory or create or + delete memory blocks. + + If problems are found, they are listed in the \gui Analysis output pane. + Select a link to move to the problematic code. + + \image analyzer_issues.png "Analysis output pane" + + */ |