forked from qt-creator/qt-creator
Doc: debugger is now selected for each target
Change-Id: I6c033c047d134a953291747f2cf044dcaab1d858 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -32,24 +32,21 @@
|
|||||||
|
|
||||||
\title Setting Up Debugger
|
\title Setting Up Debugger
|
||||||
|
|
||||||
The main debugger settings are associated with the \l{glossary-tool-chain}
|
The main debugger settings are associated with the build
|
||||||
{tool chains} used to build your project.
|
\l{glossary-development-target}{target} of your project. To specify the
|
||||||
|
debugger and compiler to use for each build target, select \gui Tools >
|
||||||
To configure tool chains, select \gui{Tools > Options > Build and Run >
|
\gui Options > \gui {Build and Run} > \gui Targets.
|
||||||
Tool Chains}. The view lists the tool chains that \QC detected
|
|
||||||
automatically. You can add tool chains.
|
|
||||||
|
|
||||||
You need to set up the debugger only if the automatic setup
|
You need to set up the debugger only if the automatic setup
|
||||||
fails, because the native debugger is missing (as is usually the
|
fails, because the native debugger is missing (as is usually the
|
||||||
case for the CDB debugger on Windows, which you always must install
|
case for the CDB debugger on Windows, which you always must install
|
||||||
yourself) or because the installed version is not supported (e.g.
|
yourself) or because the installed version is not supported (for example,
|
||||||
when your system contains no, or an outdated version of GDB and you
|
when your system contains no, or an outdated version of GDB and you
|
||||||
want to use a locally installed replacement instead).
|
want to use a locally installed replacement instead).
|
||||||
|
|
||||||
\note If you need to change parameters of an automatically detected
|
\note If you need to change the debugger to use for an automatically
|
||||||
toolchain, you can \gui{Clone} the tool chain and change the
|
detected target, you can \gui{Clone} the target and change the parameters in
|
||||||
parameters in the clone. Make sure to select the cloned tool chain
|
the clone. Make sure to select the cloned target for your project.
|
||||||
in the build settings of your project.
|
|
||||||
|
|
||||||
\note To use the debugging tools for Windows, you must install them
|
\note To use the debugging tools for Windows, you must install them
|
||||||
and add the Symbol Server provided by Microsoft to the symbol search
|
and add the Symbol Server provided by Microsoft to the symbol search
|
||||||
@@ -57,7 +54,7 @@
|
|||||||
Server in Windows}.
|
Server in Windows}.
|
||||||
|
|
||||||
\note To use the Free Software Foundation (FSF) version of GDB on
|
\note To use the Free Software Foundation (FSF) version of GDB on
|
||||||
Mac OS, you must sign it and modify your tool chain settings.
|
Mac OS, you must sign it and modify your target settings.
|
||||||
|
|
||||||
This section explains the options you have for debugging C++ code
|
This section explains the options you have for debugging C++ code
|
||||||
and provides installation notes for the supported native debuggers.
|
and provides installation notes for the supported native debuggers.
|
||||||
@@ -237,7 +234,7 @@
|
|||||||
supports Python from
|
supports Python from
|
||||||
\l{ftp://ftp.qt.nokia.com/misc/gdb/7.2/gdb72_mac_platform.tar.bz2}.
|
\l{ftp://ftp.qt.nokia.com/misc/gdb/7.2/gdb72_mac_platform.tar.bz2}.
|
||||||
To use FSF GDB on Mac OS, you must sign it and add it to the \QC
|
To use FSF GDB on Mac OS, you must sign it and add it to the \QC
|
||||||
tool chains. For more information, see
|
targets. For more information, see
|
||||||
\l{Setting up FSF GDB for Mac OS}.
|
\l{Setting up FSF GDB for Mac OS}.
|
||||||
|
|
||||||
\note The Mac OS X Snow Leopard (10.6) has a bug that might cause the
|
\note The Mac OS X Snow Leopard (10.6) has a bug that might cause the
|
||||||
@@ -275,8 +272,7 @@
|
|||||||
|
|
||||||
\section1 Setting up FSF GDB for Mac OS
|
\section1 Setting up FSF GDB for Mac OS
|
||||||
|
|
||||||
To use FSF GDB on Mac OS, you must sign it and add it to the \QC tool
|
To use FSF GDB on Mac OS, you must sign it and add it to the \QC targets.
|
||||||
chains.
|
|
||||||
|
|
||||||
\list 1
|
\list 1
|
||||||
|
|
||||||
@@ -317,21 +313,14 @@
|
|||||||
\endcode
|
\endcode
|
||||||
|
|
||||||
\o In \QC, select \gui {Qt Creator > Preferences > Build & Run >
|
\o In \QC, select \gui {Qt Creator > Preferences > Build & Run >
|
||||||
Tool Chains}, to add a tool chain that uses the debugger:
|
Targets} > \gui Add to create a build target that uses FSF GDB.
|
||||||
|
|
||||||
\list 1
|
|
||||||
|
|
||||||
\o Select a native tool chain (usually, a x86 64-bit tool chain)
|
|
||||||
and click \gui Clone to clone it.
|
|
||||||
|
|
||||||
\o In the \gui Debugger field, specify the path to FSF GDB
|
\o In the \gui Debugger field, specify the path to FSF GDB
|
||||||
(\c $HOME/gdb72/bin/fsfgdb, but with an explicit value for
|
(\c $HOME/gdb72/bin/fsfgdb, but with an explicit value for
|
||||||
\c $HOME).
|
\c $HOME).
|
||||||
|
|
||||||
\endlist
|
\o To use the debugger, add the target in the \gui {Build Settings}
|
||||||
|
of the project.
|
||||||
\o To use the debugger, select the tool chain in the \gui {Tool chain}
|
|
||||||
field in the \gui {Build Settings} of the project.
|
|
||||||
|
|
||||||
\endlist
|
\endlist
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user